// Use this for initialization void Awake() { ResourcesManager.assetsLoadType = assetsLoadType; if (assetsLoadType == AssetsLoadType.Resources) { SetGameSetting(); } else { PreLoadResourceController.progressCallBack = uishow.ShowProgress; PreLoadResourceController.showContentCallBack = uishow.ShowContent; UpdateResourseController.progressCallBack = uishow.ShowProgress; UpdateResourseController.showContentCallBack = uishow.ShowContent; string serverPath = GameSettingStoreManager.GetValue("ServerPath", ""); if (!string.IsNullOrEmpty(serverPath)) { UpdateResourseController.StartUpdating(this, serverPath, SetGameSetting); } else { SetGameSetting(); } } }
void SetGameSetting() { InternalConfigManager.ReleaseAll(); ResourcesManager.ReleaseAll(); ResourcePathManager.ReLoadData(); GameSettingStoreManager.Clear(); Debug.unityLogger.logEnabled = GameSettingStoreManager.GetValue("Debug", true); Application.runInBackground = GameSettingStoreManager.GetValue("runInBackground", true); if (assetsLoadType == AssetsLoadType.AssetBundle) { PreLoadResourceController.StartLoadResource(IntoGameScene); } else { IntoGameScene(); } }
private void LanguageSettingEditGUI() { GUILayout.BeginVertical("box"); GUILayout.Space(3); object value = EditorDrawGUIUtil.DrawBaseValue("是否使用系统语言", GameSettingStoreManager.GetValue(LocalizedLanguageManager.GameSettingKeyName_IsUseSystemLanguage, true)); GameSettingStoreManager.SetValue(LocalizedLanguageManager.GameSettingKeyName_IsUseSystemLanguage, value); GUILayout.Space(3); List <string> tempss = new List <string>(langDataDic.Keys); if (tempss.Count > 0) { value = EditorDrawGUIUtil.DrawPopup("优先使用的语言:", GameSettingStoreManager.GetValue(LocalizedLanguageManager.GameSettingKeyName_PriorityLanguage, tempss[0]), tempss); GameSettingStoreManager.SetValue(LocalizedLanguageManager.GameSettingKeyName_PriorityLanguage, value); } GUILayout.Space(3); GUILayout.Label("当返回语言为Chinese时,优先使用简体还是繁体:"); List <string> ss = new List <string>(chineseLangusge); value = EditorDrawGUIUtil.DrawPopup("中文语言:", GameSettingStoreManager.GetValue(LocalizedLanguageManager.GameSettingKeyName_ChineseLanguagePriorityLanguage, ss[0]), ss); GameSettingStoreManager.SetValue(LocalizedLanguageManager.GameSettingKeyName_ChineseLanguagePriorityLanguage, value); GUILayout.Space(3); GUILayout.EndVertical(); }