using CodeJay.Enum; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class MissionSuccessPopup : MonoBehaviour { public TextMeshProUGUI t_mission; public void Set(List cards = null) { gameObject.SetActive(true); GameManager.Sound.PlaySFX(ESFXType.Open_Popup); StartCoroutine(Co_Off()); t_mission.text = cards == null ? $"메인미션 x{GamePanel.Instance.dic_missionRate[GamePanel.Instance.CurMission]}" : $"서브미션 x{GamePanel.Instance.dic_submisstionRate[GamePanel.Instance.CurSubMission]}"; GetComponent().Set(cards); } IEnumerator Co_Off() { yield return new WaitForSeconds(2.5f); gameObject.SetActive(false); } }