예제 #1
0
    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();
        }
    }
예제 #2
0
 public void SettingsButton()
 {
     settingsButton.SetActive(false);
     shopButton.SetActive(false);
     panelSettings.SetActive(true);
     AdsButton.SetActive(false);
     achievementButton.SetActive(false);
     LeaderButton.SetActive(false);
 }
예제 #3
0
 public void SaveButton()
 {
     panelSettings.SetActive(false);
     settingsButton.SetActive(true);
     shopButton.SetActive(true);
     AdsButton.SetActive(true);
     achievementButton.SetActive(true);
     LeaderButton.SetActive(true);
     SceneManager.LoadScene("MainMenu");
 }
예제 #4
0
 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);
 }
예제 #5
0
 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);
 }
예제 #6
0
    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");
    }