Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 //显示语言设置
 void ShowLanguageSetting()
 {
     GUILayout.Label("设置语言:", GUILayout.Width(70));
     _languageIndex         = EditorGUILayout.Popup(_languageIndex, LanguageSetting.languages, GUILayout.Width(120));
     KAssetManager.language = LanguageSetting.GetLanguage(_languageIndex);
 }