Example #1
0
        /// <summary>
        /// 开始激活预加载
        /// </summary>
        /// <param name="rg"></param>
        public void StartPreload(BaseILRuntimeGenerics rg = null)
        {
            if (null != rg)
            {
                ILRuntimeILWorker.RegisterILRuntimeGenerics(rg);
            }

            //初始化运行环境配置环境
            Runtime.Ins.Init(runtimeCfg);

            Log.CI(Log.COLOR_BLUE, "游戏运行模式:[{0}]", Runtime.Ins.IsHotResProject?Runtime.Ins.ResMode.ToString():"Local");

            if (false == Runtime.Ins.IsHotResProject)
            {
                ResMgr.Ins.Init(ResMgr.EResMgrType.RESOURCES);
                StartMainPrefab();
            }
            else
            {
                OnStageChange(EState.UNZIP_PACKAGE);
                new PackageUpdate().Start(LoadSettingFile, OnPackageUpdate);
            }
        }
Example #2
0
 /// <summary>
 /// 注册ILRuntime的适配器注册类
 /// </summary>
 /// <param name="rg"></param>
 internal static void RegisterILRuntimeGenerics(BaseILRuntimeGenerics rg)
 {
     _rgList.Add(rg);
 }