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); } } }
public void OnResumeClick() { gameState = GAMESTATE.PLAYING; Sound.instance.PlayButton(); CUtils.CloseBannerAd(); UpdatePanels(); }
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(); }
private void Start() { CUtils.ShowInterstitialAd(); CUtils.CloseBannerAd(); }
public void OnReplayClick() { CUtils.CloseBannerAd(); Sound.instance.PlayButton(); CUtils.LoadScene(2); }
public void OnMenuClick() { CUtils.CloseBannerAd(); Sound.instance.PlayButton(); CUtils.LoadScene(gameMode == GameMode.CLASSIC_MODE ? 0 : 1); }
public override void Show() { base.Show(); CUtils.CloseBannerAd(); }