public void Awake() { Pc = GetComponent <PopUpCtrl>(); ClearNo.onClick.AddListener(() => Pc.PopUpActive(Pc.ClearPopUp, -1, false)); NoClearOk.onClick.AddListener(() => Pc.PopUpActive(Pc.NoClearPopUp, -1, false)); CommingSoon.onClick.AddListener(() => Pc.PopUpActive(Pc.CommingSoonPopUp, -1, false)); NoAds.onClick.AddListener(() => Pc.PopUpActive(Pc.NoAdsPopUp, -1, false)); AdvertiseMentNo.onClick.AddListener(() => Pc.PopUpActive(Pc.AdvertiseMentPopUp, -1, false)); AdvertiseMentYes.onClick.AddListener(() => { Pc.AllPopUpActive(false); bool t = UnityAdsManager.instance.ShowAds( () => DataManager.Instance.HeartAmount = 5, // 제대로 광고본년들 보상 () => DataManager.Instance.OpenPopup(PopUpCtrl.ePopupType.NoAds, true), // 광고 보려고는 햇으나 제대로 광고가 나오지 않은 의리잇는놈들 () => DataManager.Instance.OpenPopup(PopUpCtrl.ePopupType.NoAds, true) // 스킵한 개씌벌럼들 ); }); }
public void Update() { if (Input.GetKeyDown(KeyCode.Escape) && IsLock == false) { if (IsGameStart == false) { if (pc.IsPopUp()) { pc.AllPopUpActive(false); } else { pc.PopUpActive(PopUpCtrl.ePopupType.Quit, true); } } else { IsLock = true; FadeInOut.Instance.FadeIn(() => SceneManager.LoadScene("Scene_Title"), FadeInOut.eFadeActiveOption.None); } } }