コード例 #1
0
 private void OnEnable()
 {
     cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
     if (null == cfg)
     {
         cfg = new ConfigVO();
     }
 }
コード例 #2
0
 /// <summary>
 /// 加载配置
 /// </summary>
 public void LoadConfig()
 {
     Cfg = EditorConfigUtil.LoadConfig <HotResConfigVO>(CONFIG_NAME);
     if (null == Cfg)
     {
         Cfg = new HotResConfigVO();
     }
 }
コード例 #3
0
 public IOSProjectInitConfig()
 {
     Cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
     if (null == Cfg)
     {
         Cfg = new ConfigVO();
         SaveCfg();
     }
 }
コード例 #4
0
        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, "版本号", "跳转地址");
        }