void Awake() { languageController = this; StartProcessController.ActionAfterFewFrames(15, () => { if (GameController.gameController.currentSettings.language == "") { if (Application.systemLanguage == SystemLanguage.Russian || Application.systemLanguage == SystemLanguage.Ukrainian || Application.systemLanguage == SystemLanguage.Belarusian ) { SetRussian(); } else { SetEnglish(); } } else { TextAsset jsonAsset = (TextAsset)Resources.Load("Text/" + GameController.gameController.currentSettings.language); string jsonString = jsonAsset.text; jsonFile = JSON.Parse(jsonString); languageController.SetButtons(); } }); }
void Awake() { StartProcessController.ActionAfterFewFrames(1, () => { if (this != null) { transform.localScale = new Vector3(1, 1, 1); } }); }