Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void Click_Setting_Button()
 {
     UI_Popup.AllClose();
     settingPopup.gameObject.SetActive(true);
 }
Beispiel #3
0
 public void Click_Quest_Button()
 {
     UI_Popup.AllClose();
     questPopup.Initialize();
 }
Beispiel #4
0
 public void Click_MailboxButton()
 {
     UI_Popup.AllClose();
     mailboxPopup.Initialize();
 }
Beispiel #5
0
 public void Click_RankButton()
 {
     UI_Popup.AllClose();
     rankPopup.Initialize();
 }