26 lines
713 B
C#
26 lines
713 B
C#
|
|
using System.Collections;
|
||
|
|
using TMPro;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class MissionSuccessPopup : MonoBehaviour
|
||
|
|
{
|
||
|
|
public static bool isMain;
|
||
|
|
|
||
|
|
public TextMeshProUGUI t_mission;
|
||
|
|
|
||
|
|
public void Set()
|
||
|
|
{
|
||
|
|
gameObject.SetActive(true);
|
||
|
|
GameManager.Sound.PlaySFX(ESFXType.Open_Popup);
|
||
|
|
StartCoroutine(Co_Off());
|
||
|
|
|
||
|
|
t_mission.text = isMain ? $"메인미션 x{GamePanel.Instance.dic_missionRate[GamePanel.Instance.CurMission]}" :
|
||
|
|
$"서브미션 x{GamePanel.Instance.dic_submisstionRate[GamePanel.Instance.CurSubMission]}";
|
||
|
|
}
|
||
|
|
|
||
|
|
IEnumerator Co_Off()
|
||
|
|
{
|
||
|
|
yield return new WaitForSeconds(2.5f);
|
||
|
|
gameObject.SetActive(false);
|
||
|
|
}
|
||
|
|
}
|