Пример #1
0
    public void OnNextClick()
    {
        CUtils.CloseBannerAd();
        Sound.instance.PlayButton();

        if (currLevel < Superpow.Utils.GetNumLevels(currWorld))
        {
            LevelController.SetCurrentLevel(currWorld, currLevel + 1);
            CUtils.LoadScene(2);
        }
        else
        {
            int unlockWorld = LevelController.GetUnlockWorld();
            if (currWorld < Const.NUM_WORLD && currWorld + 1 <= unlockWorld)
            {
                LevelController.SetCurrentWorld(currWorld + 1);
                LevelController.SetCurrentLevel(currWorld + 1, 1);
                CUtils.LoadScene(2);
            }
            else
            {
                CUtils.LoadScene(1);
            }
        }
    }
Пример #2
0
 public void OnResumeClick()
 {
     gameState = GAMESTATE.PLAYING;
     Sound.instance.PlayButton();
     CUtils.CloseBannerAd();
     UpdatePanels();
 }
Пример #3
0
    public virtual void Close()
    {
        if (isShowing == false)
        {
            return;
        }
        isShowing = false;
        if (anim != null && IsIdle() && hidingAnimation != null)
        {
            anim.SetTrigger("hide");
            Timer.Schedule(this, hidingAnimation.length, DoClose);
        }
        else
        {
            DoClose();
        }

        CUtils.CloseBannerAd();
    }
    public void BuyNoAds()
    {
        SceneM.isVIP = true;
        SaveManager.instance.SaveBool("isVIP", SceneM.isVIP);
        CUtils.CloseBannerAd();
        if (MenuManager_EachChapterMainScene.instance != null)
        {
            MenuManager_EachChapterMainScene.instance.noAdsButtonGO.SetActive(false);
        }
        if (HomeSceneManager.instance != null)
        {
            HomeSceneManager.instance.noadsButton.SetActive(false);
        }

        PlayerData.instance.NumberOfHints += 3;
        PlayerData.instance.SaveData();
        isnoadsbuy = true;
        SettingManager.instance.CloudSave_YES();
    }
Пример #5
0
 private void Start()
 {
     CUtils.ShowInterstitialAd();
     CUtils.CloseBannerAd();
 }
Пример #6
0
 public void OnReplayClick()
 {
     CUtils.CloseBannerAd();
     Sound.instance.PlayButton();
     CUtils.LoadScene(2);
 }
Пример #7
0
 public void OnMenuClick()
 {
     CUtils.CloseBannerAd();
     Sound.instance.PlayButton();
     CUtils.LoadScene(gameMode == GameMode.CLASSIC_MODE ? 0 : 1);
 }
Пример #8
0
 public override void Show()
 {
     base.Show();
     CUtils.CloseBannerAd();
 }