public string[] list_text;//english, russian, deutsch, francias, chines, indian, japan
 void Start()
 {
     game_mngr = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>();
     if (PlayerPrefs.HasKey("selected_language"))
     {
         cur_language  = SaveLoadData.LoadDataInt("selected_language");
         cur_text.text = list_text[cur_language];
     }
 }
Exemple #2
0
    void Start()
    {
        ready_now          = false;
        timer_text.enabled = false;

        if (PlayerPrefs.HasKey("selected_language"))
        {
            cur_language = SaveLoadData.LoadDataInt("selected_language");
        }
        if (PlayerPrefs.HasKey("agree_privacy_polit") == false || SaveLoadData.LoadDataInt("agree_privacy_polit") == 0)
        {
            privacy_polit_panel.SetActive(true);
        }
        else
        {
            agree_privacy_polit = SaveLoadData.LoadDataInt("agree_privacy_polit");
            privacy_polit_panel.SetActive(false);
        }
        if (PlayerPrefs.HasKey("3x3"))
        {
            record_int[0] = int.Parse(SaveLoadData.LoadData("3x3"));
        }
        if (PlayerPrefs.HasKey("4x4"))
        {
            record_int[1] = (int)int.Parse(SaveLoadData.LoadData("4x4"));
        }
        if (PlayerPrefs.HasKey("5x5"))
        {
            record_int[2] = (int)int.Parse(SaveLoadData.LoadData("5x5"));
        }
        if (PlayerPrefs.HasKey("6x6"))
        {
            record_int[3] = (int)int.Parse(SaveLoadData.LoadData("6x6"));
        }
        if (PlayerPrefs.HasKey("round_counter"))
        {
            record_int[4] = (int)int.Parse(SaveLoadData.LoadData("round_counter"));
        }
    }