Esempio n. 1
0
    public void TitleInit()
    {
        hc = GameObject.Find("Heart").GetComponent <HeartCtrl>();
        pc = GameObject.Find("PopUp").GetComponent <PopUpCtrl>();

        IsGameStart = false;
        IsLock      = false;
    }
Esempio n. 2
0
    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)  // 스킵한 개씌벌럼들
                );
        });
    }
Esempio n. 3
0
 private void Awake()
 {
     Pc = GameObject.Find("PopUp").GetComponent <PopUpCtrl>();
     //this.GetComponent<Button>().onClick.AddListener(() => ShowPopUp(StageID, IsClear));
     this.GetComponent <Button>().onClick.AddListener(() => Check(IsClear, StageID));
 }