Esempio n. 1
0
 private void refreshAllTexts()
 {
     Text[] allTexts = FindObjectsOfType <Text>();
     if (testing)
     {
         Debug.Log(allTexts.Length + " texts loaded");
     }
     foreach (var uiText in allTexts)
     {
         string key = uiText.text;
         if (key.StartsWith("&"))
         {
             string key_1 = key.Substring(1, key.Length - 1);
             string text  = GameTexts.get(key_1, lang);
             uiText.text = text;
         }
     }
 }