using System.Collections; using TMPro; using UnityEngine; public class AlbumOpenPopup : PopupBase { public TextMeshProUGUI t_; public override void ShowPopup(int drawOrder) { base.ShowPopup(drawOrder); GameManager.Sound.PlaySFX(ESFXType.Open_Popup); var targetindex = GameManager.DB.GetUnlockTargetIndex(true) - 1; DB_HuntingListData huntingListData = DB_HuntingListData.GetEntity(Mathf.FloorToInt((float)((float)targetindex / 2.0f))); t_.text = $"축하합니다!!\n{huntingListData.DBF_Title} 앨범이 오픈되었습니다."; StartCoroutine(Co_Off()); } IEnumerator Co_Off() { yield return new WaitForSeconds(2.5f); GameManager.UI.HideTopPopup(); } }