void ShowLanguageSetting() { GUILayout.Space(5); GUILayout.BeginHorizontal(); GUILayout.Label("设置语言:", GUILayout.Width(70)); int index = EditorGUILayout.Popup(LanguageSetting.GetLanguageIndex(KAssetManager.language), LanguageSetting.languages, GUILayout.Width(120)); KAssetManager.language = LanguageSetting.GetLanguage(index); GUILayout.EndHorizontal(); }
void Awake() { _defaultColor = GUI.backgroundColor; _redColor = new Color(171f / 255f, 26f / 255f, 37f / 255f); _greenColor = new Color(26f / 255f, 171f / 255f, 37f / 255f); _blueColor = new Color(0, 122f / 255f, 204f / 255f); _languageIndex = LanguageSetting.GetLanguageIndex(KAssetManager.language); //默认语言 _parent2targets = null; }