//public void CloseOutOfLifePanel() //{ // sound.PlayotherButton(); // OutofLifePanel.SetActive(false); // cls.isoutoflifeActive = false; // cts.isOutofLifeActive = false; //} //public void CloseRewardPanel() //{ // sound.PlayotherButton(); // life.isGameOverPanelActive = false; // cls.isoutoflifeActive = false; // RewardLifePanel.SetActive(life.isGameOverPanelActive); // SaveGameMenu(); // Debug.Log(cls.isoutoflifeActive); // Debug.Log(life.isGameOverPanelActive); //} ////For StarLife demonstration //public void OpenStarLifeDemo() //{ // sound.PlayotherButton(); // StarLifeDemo.SetActive(true); // isEscapeActiveGM = false; // StartCoroutine("openstarDemo"); //} //IEnumerator openstarDemo() //{ // LeanTween.scale(StarDemoHolder, presize, 0.35f); // yield return new WaitForSeconds(0.35f); // LeanTween.scale(StarDemoHolder, finalsize, 0.15f); //} //public void CloseStarLifeDemo() //{ // sound.PlayotherButton(); // StartCoroutine("closestarDemo"); //} //IEnumerator closestarDemo() //{ // LeanTween.scale(StarDemoHolder, presize, 0.15f); // yield return new WaitForSeconds(0.15f); // LeanTween.scale(StarDemoHolder, Vector3.zero, 0.35f); // yield return new WaitForSeconds(0.35f); // StarLifeDemo.SetActive(false); // isEscapeActiveGM = true; //} //For Diamonds Demonstration public void OpenDiamondDemo() { sound.PlayotherButton(); DiamondDemo.SetActive(true); isEscapeActiveGM = false; StartCoroutine("opendDemo"); }
void Update() { if (Input.GetKeyDown(KeyCode.Escape) && isEscapeActive && !life.isGameOverPanelActive && GM.isEscapeActiveGM) { sound.PlayotherButton(); CatagoryCanvas.SetActive(true); ClassicLevelsCanvas.SetActive(false); } }
//Display video ad when normal score public void DisplayVideoAd_Normalscore() { Sound.PlayotherButton(); isForNormalScore = true; if (rewardVideoAd.IsLoaded()) { rewardVideoAd.Show(); } else { StartCoroutine("ShowNoVideo"); } }
void Update() { if (Input.GetKeyDown(KeyCode.Escape) && isEscapeActive && !life.isGameOverPanelActive && !isOutofLifeActive && GM.isEscapeActiveGM) { sound.PlayotherButton(); Camera.main.transform.position = MainmenuCameraPosition.transform.position; MainMenuCanvas.SetActive(true); CatagoryCanvas.SetActive(false); } }
//public void Display_Banner() //{ // bannerAd.Show(); //} //public void Display_Interstitial() //{ // if(interstitialAd.IsLoaded()) // { // interstitialAd.Show(); // } //} public void Display_Video_Ad() { sound.PlayotherButton(); if (rewardVideoAd.IsLoaded()) { rewardVideoAd.Show(); } else { StartCoroutine("NoVideo"); } }
public void NormalOkayButton() { sound.PlayotherButton(); life.diamonds += life.collectedDiamond; diamondText.text = life.diamonds.ToString(); ScorePanelNormal.SetActive(false); ButtonPanelNormal.SetActive(true); SaveLimitless(); }
public void CloseRevived() { sound.PlayotherButton(); life.isGameOverPanelActive = false; revived.SetActive(life.isGameOverPanelActive); SaveThisGame(); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }
public void ClickDoubleDiamondVideo() { sound.PlayotherButton(); if (LevelNumber == 1) { if (life.AdlimitCounter[0] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[0] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 2) { if (life.AdlimitCounter[1] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[1] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 4) { if (life.AdlimitCounter[3] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[3] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 5) { if (life.AdlimitCounter[4] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[4] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 7) { if (life.AdlimitCounter[6] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[6] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 8) { if (life.AdlimitCounter[7] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[7] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 10) { if (life.AdlimitCounter[9] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[9] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 12) { if (life.AdlimitCounter[11] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[11] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 14) { if (life.AdlimitCounter[13] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[13] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 15) { if (life.AdlimitCounter[14] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[14] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 17) { if (life.AdlimitCounter[16] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[16] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 19) { if (life.AdlimitCounter[18] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[18] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 21) { if (life.AdlimitCounter[20] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[20] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 23) { if (life.AdlimitCounter[22] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[22] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 25) { if (life.AdlimitCounter[24] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[24] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 26) { if (life.AdlimitCounter[25] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[25] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 28) { if (life.AdlimitCounter[27] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[27] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 29) { if (life.AdlimitCounter[28] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[28] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 31) { if (life.AdlimitCounter[30] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[30] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 33) { if (life.AdlimitCounter[32] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[32] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 35) { if (life.AdlimitCounter[34] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[34] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 37) { if (life.AdlimitCounter[36] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[36] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 38) { if (life.AdlimitCounter[37] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[37] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 40) { if (life.AdlimitCounter[39] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[39] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 41) { if (life.AdlimitCounter[40] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[40] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 43) { if (life.AdlimitCounter[42] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[42] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 45) { if (life.AdlimitCounter[44] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[44] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 46) { if (life.AdlimitCounter[45] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[45] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 48) { if (life.AdlimitCounter[47] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[47] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 49) { if (life.AdlimitCounter[48] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[48] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 51) { if (life.AdlimitCounter[50] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[50] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 52) { if (life.AdlimitCounter[51] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[51] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 54) { if (life.AdlimitCounter[53] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[53] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 56) { if (life.AdlimitCounter[55] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[55] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 58) { if (life.AdlimitCounter[57] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[57] < 1) { LAD.DisplayVideo_AD_forDoubleDiamond(); } } else if (LevelNumber == 60) { if (life.AdlimitCounter[59] >= 1) { ShowOutofAd(); } else if (life.AdlimitCounter[59] < 1) { LAD.DisplayVideo_AD_forFinalDouble(); } } }
public void CloseStartIntro() { sound.PlayotherButton(); StartIntro.SetActive(false); }
IEnumerator OpeningPanel() { sound.PlayotherButton(); LeanTween.moveLocalY(exitPanel, -73, 0.25f); yield return(new WaitForSeconds(0.25f)); isExitpanelActive = true; }