private void OnEnable() { cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); if (null == cfg) { cfg = new ConfigVO(); } }
/// <summary> /// 加载配置 /// </summary> public void LoadConfig() { Cfg = EditorConfigUtil.LoadConfig <HotResConfigVO>(CONFIG_NAME); if (null == Cfg) { Cfg = new HotResConfigVO(); } }
public IOSProjectInitConfig() { Cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); if (null == Cfg) { Cfg = new ConfigVO(); SaveCfg(); } }
private void OnEnable() { cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); if (cfg.data.startupResGroups == null) { cfg.data.startupResGroups = new string[0]; } if (cfg.data.settingJump == null) { cfg.data.settingJump = new Dictionary <string, string>(); } if (cfg.data.startupParams == null) { cfg.data.startupParams = new Dictionary <string, string>(); } _startParamsDic.SetData(cfg.data.startupParams, "Key", "Value"); _settingJumpDic.SetData(cfg.data.settingJump, "版本号", "跳转地址"); }