public IEnumerator StartGame() { PlayerPrefs.SetInt("dkStart", 1); Play.SetActive(false); /*FBScreen[0].SetActive (false); * FBScreen[1].SetActive (false); * FBScreen[2].SetActive (false);*/ Highscore.SetActive(false); BG.SetActive(false); shopButton.SetActive(false); settingsButton.SetActive(false); AdsButton.SetActive(false); achievementButton.SetActive(false); LeaderButton.SetActive(false); textDK.SetActive(true); yield return(new WaitForSeconds(3f)); shopButton.SetActive(true); Play.SetActive(true); /*FBScreen[0].SetActive (true); * FBScreen[1].SetActive (true);*/ Highscore.SetActive(true); BG.SetActive(true); AdsButton.SetActive(true); achievementButton.SetActive(true); LeaderButton.SetActive(true); textDK.SetActive(false); settingsButton.SetActive(true); if (PlayerPrefs.GetInt("languageSelected") == 0) { LangFirstOpen(); } }
public void ShowAcountPanel(bool e) { if (e) { AcountPanel.SetActive(true); AccountButton.SetActive(false); InfoButton.SetActive(false); SettingsButton.SetActive(false); LeaderButton.SetActive(false); PlayScreen.SetActive(false); ShopButton.SetActive(false); BtnAvatar.SetActive(false); Camera.GetComponent <CameraController>().enabled = false; } else { AcountPanel.SetActive(false); AccountButton.SetActive(true); InfoButton.SetActive(true); SettingsButton.SetActive(true); LeaderButton.SetActive(true); ShopButton.SetActive(true); BtnAvatar.SetActive(true); PlayScreen.SetActive(true); Camera.GetComponent <CameraController>().enabled = true; } }
public void ShowModesPage(bool y) { if (y) { PlayScreen.SetActive(false); InfoButton.SetActive(false); TextMeshHome.SetActive(false); LeaderButton.SetActive(false); SettingsButton.SetActive(false); AccountBtnIcon.SetActive(false); ShopButton.SetActive(false); BtnAvatar.SetActive(false); BackToHomeButton.SetActive(true); ModesPage.SetActive(true); } else { BackToHomeButton.SetActive(false); ModesPage.SetActive(false); PlayScreen.SetActive(true); InfoButton.SetActive(true); TextMeshHome.SetActive(true); LeaderButton.SetActive(true); SettingsButton.SetActive(true); AccountBtnIcon.SetActive(true); ShopButton.SetActive(true); BtnAvatar.SetActive(true); } }
public void SettingsButton() { settingsButton.SetActive(false); shopButton.SetActive(false); panelSettings.SetActive(true); AdsButton.SetActive(false); achievementButton.SetActive(false); LeaderButton.SetActive(false); }
public void SaveButton() { panelSettings.SetActive(false); settingsButton.SetActive(true); shopButton.SetActive(true); AdsButton.SetActive(true); achievementButton.SetActive(true); LeaderButton.SetActive(true); SceneManager.LoadScene("MainMenu"); }
public void LangFirstOpen() { Play.SetActive(false); Highscore.SetActive(false); shopButton.SetActive(false); textLoading.SetActive(false); settingsButton.SetActive(false); AdsButton.SetActive(false); achievementButton.SetActive(false); LeaderButton.SetActive(false); LangPanelFirst.SetActive(true); langClose.SetActive(false); }
public void LanguageDEFirst() { PlayerPrefs.SetInt("languageSelected", 1); LanguageManager.Instance.ChangeLanguage("de"); PlayerPrefs.SetInt("languageSelection", 2); PlayerPrefs.SetInt("lannf", 1); Play.SetActive(true); Highscore.SetActive(true); shopButton.SetActive(true); AdsButton.SetActive(true); achievementButton.SetActive(true); LeaderButton.SetActive(true); settingsButton.SetActive(true); LangPanelFirst.SetActive(false); }
public IEnumerator load() { dk += 1; PlayerPrefs.SetString("Playy", "start"); Play.SetActive(false); Highscore.SetActive(false); shopButton.SetActive(false); /*FBScreen[0].SetActive (false); * FBScreen[1].SetActive (false); * FBScreen[2].SetActive (false);*/ textLoading.SetActive(true); settingsButton.SetActive(false); AdsButton.SetActive(false); achievementButton.SetActive(false); LeaderButton.SetActive(false); Debug.Log("Notification 1 Active"); yield return(new WaitForSeconds(1.5f)); SceneManager.LoadScene("Run"); }