private bool RecieveItemCallback(GameBaseMailBoxErrorCode errorCode, ItemBaseInfo[] arrayMailItemInfo) { if (errorCode == GameBaseMailBoxErrorCode.Success) { UserInfoManager.Get().GetUserInfo().AddItem(arrayMailItemInfo, image_ItemIcon.transform.position); UI_Mailbox.RemoveMailInfo(info); Destroy(gameObject); return(true); } return(false); }
private void Update() { btn_AD.interactable = MopubCommunicator.Instance != null && MopubCommunicator.Instance.hasVideo(); if (Input.GetKeyDown(KeyCode.Escape)) { if (UI_Popup.stack.Count > 0) { UI_Popup.ClosePop(); } else { commonMessageBoxPopup.Initialize(LocalizationManager.GetLangDesc("Option_Gamequit"), LocalizationManager.GetLangDesc("Option_Gamequitquestion"), LocalizationManager.GetLangDesc("Option_Quit"), null, () => { Application.Quit(); }); } } // popup debug // if (UI_Popup.stack.Count > 0) // { // Debug.Log($"Popup {UI_Popup.stack.Count} Peek {UI_Popup.stack.Peek().name}"); // } // 퀘스트 뱃지 체크 obj_QuestBadge.SetActive(UI_Popup_Quest.IsCompletedQuest()); // 우편함 뱃지 체크 obj_MailboxBadge.SetActive(UI_Mailbox.GetMailCount() > 0); // 메뉴버튼 뱃지 체크 obj_MenuBadge.SetActive(obj_MailboxBadge.activeSelf); }