Example #1
0
 // Use this for initialization
 void Start()
 {
     if (SceneManager.GetActiveScene() == SceneManager.GetSceneByName("Menu"))
     {
         ls.CheckConfig();
         your_record.GetComponentInChildren <Text>().text = LangSystem.lng.loc_menu[3];
         rcd.text = LangSystem.cnfg.record.ToString();
     }
 }
Example #2
0
 void Awake()
 {
     ls.CheckConfig();
     current_bg = LangSystem.cnfg.current_bg;
     PlayerPrefs.SetString("current_bg", current_bg);
 }
Example #3
0
 void Awake()
 {
     ls.CheckConfig();
     current_skin = LangSystem.cnfg.current_skin;
     PlayerPrefs.SetString("current_skin", current_skin);
 }
Example #4
0
 // Use this for initialization
 void Awake()
 {
     ls.CheckConfig();
     current_platform = LangSystem.cnfg.current_platform;
     PlayerPrefs.SetString("current_platform", current_platform);
 }
Example #5
0
 public void LoadData()
 {
     ls.CheckConfig();
     for (int a = 1; a < value_text_bg.Length; a++)
     {
         value_text_bg[a].text = itm.bgs_prices[a].ToString();
     }
     for (int b = 1; b < value_text_pl.Length; b++)
     {
         value_text_pl[b].text = itm.platforms_prices[b].ToString();
     }
     for (int a = 1; a < value_text_sk.Length; a++)
     {
         value_text_sk[a].text = itm.skins_prices[a].ToString();
     }
     for (int c = 0; c < price_line_bgs.Length; c++)
     {
         if (LangSystem.cnfg.avaliable_bgs[c] != 1)
         {
             price_line_bgs[c].SetActive(true);
         }
         else
         {
             price_line_bgs[c].SetActive(false);
         }
     }
     for (int d = 0; d < price_line_pts.Length; d++)
     {
         if (LangSystem.cnfg.avaliable_platforms[d] != 1)
         {
             price_line_pts[d].SetActive(true);
         }
         else
         {
             price_line_pts[d].SetActive(false);
         }
     }
     for (int c = 0; c < price_line_sk.Length; c++)
     {
         if (LangSystem.cnfg.avaliable_skins[c] != 1)
         {
             price_line_sk[c].SetActive(true);
         }
         else
         {
             price_line_sk[c].SetActive(false);
         }
     }
     for (int e = 0; e < ActiveLinesBG.Length; e++)
     {
         if (LangSystem.cnfg.current_bg == itm.bgs_list[e].ToString())
         {
             ActiveLinesBG[e].SetActive(true);
         }
     }
     for (int f = 0; f < ActiveLinesPL.Length; f++)
     {
         if (LangSystem.cnfg.current_platform == itm.platforms_list[f].ToString())
         {
             ActiveLinesPL[f].SetActive(true);
         }
     }
     for (int e = 0; e < ActiveLinesSK.Length; e++)
     {
         if (LangSystem.cnfg.current_skin == itm.skins_list[e].ToString())
         {
             ActiveLinesSK[e].SetActive(true);
         }
     }
 }