97 lines
2.6 KiB
C#
97 lines
2.6 KiB
C#
using CodeJay.Enum;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class MissionOpenPopup_Sub : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI t_msg, t_rate;
|
|
public GameObject go_clear;
|
|
|
|
private void OnEnable()
|
|
{
|
|
if (GamePanel.Instance.CurSubMission == eSubMission.Max)
|
|
{
|
|
gameObject.SetActive(false);
|
|
return;
|
|
}
|
|
|
|
t_rate.text = $"x{GamePanel.Instance.dic_submisstionRate[GamePanel.Instance.CurSubMission]}";
|
|
t_msg.text = Get_ShowUIText(GamePanel.Instance.CurSubMission);
|
|
go_clear.SetActive(GamePanel.Instance.ShowSubMissionPopup);
|
|
}
|
|
|
|
string Get_ShowUIText(eSubMission mission)
|
|
{
|
|
switch (mission)
|
|
{
|
|
case eSubMission.Dobule3:
|
|
return "쌍피 3개 수집";
|
|
case eSubMission.YulGgeut3:
|
|
return "랜덤 열끗 3종 수집";
|
|
case eSubMission.Ddee3:
|
|
return "랜덤 띠 3종 수집";
|
|
case eSubMission.Gwang3:
|
|
return "랜덤 삼광 수집";
|
|
case eSubMission.Be3Gwang:
|
|
return "랜덤 비삼광 수집";
|
|
}
|
|
|
|
return "";
|
|
}
|
|
|
|
public static List<ECardType> eSubMissionDobule3 = new List<ECardType>
|
|
{
|
|
ECardType.Dec_Double,
|
|
ECardType.Nov_Double,
|
|
ECardType.Sep_Yulkkeut,
|
|
ECardType.Bonus_1,
|
|
ECardType.Bonus_2,
|
|
ECardType.Bonus_3
|
|
};
|
|
|
|
public static List<ECardType> eSubMissionYulGgeut3 = new List<ECardType>
|
|
{
|
|
ECardType.Feb_Bird,
|
|
ECardType.Apr_Bird,
|
|
ECardType.May_Yulkkeut,
|
|
ECardType.Jun_Yulkkeut,
|
|
ECardType.Jul_Yulkkeut,
|
|
ECardType.Aug_Bird,
|
|
ECardType.Sep_Yulkkeut,
|
|
ECardType.Oct_Yulkkeut,
|
|
ECardType.Nov_Yulgget
|
|
};
|
|
|
|
public static List<ECardType> eSubMissionDdee3 = new List<ECardType>
|
|
{
|
|
ECardType.Jan_Hongdan,
|
|
ECardType.Feb_Hongdan,
|
|
ECardType.Mar_Hongdan,
|
|
ECardType.Apr_Chodan,
|
|
ECardType.May_Chodan,
|
|
ECardType.Jun_Chungdan,
|
|
ECardType.Jul_Chodan,
|
|
ECardType.Sep_Chungdan,
|
|
ECardType.Oct_Chungdan,
|
|
ECardType.Nov_Tee,
|
|
};
|
|
|
|
public static List<ECardType> eSubMissionGwang3 = new List<ECardType>
|
|
{
|
|
ECardType.Jan_Ghwang,
|
|
ECardType.Mar_Ghwang,
|
|
ECardType.Aug_Ghwang,
|
|
ECardType.Nov_Ghwang,
|
|
ECardType.Dec_Ghwang
|
|
};
|
|
|
|
public static List<ECardType> eSubMissionBe3Gwang = new List<ECardType>
|
|
{
|
|
ECardType.Jan_Ghwang,
|
|
ECardType.Mar_Ghwang,
|
|
ECardType.Aug_Ghwang,
|
|
ECardType.Nov_Ghwang,
|
|
ECardType.Dec_Ghwang
|
|
};
|
|
} |