Esempio n. 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        void Init()
        {
            if (AppConst.ExampleMode)
            {
                InitGui();
            }
            DontDestroyOnLoad(gameObject);  //防止销毁自己

            //CheckExtractResource(); //释放资源

            // 热更UI
            hotUI = new HotUI();

            // 热更新引擎
            hotEngine = new HotEngine(hotUI);
            hotEngine.OpenHotUpdate = AppConst.UpdateMode;

            Screen.sleepTimeout         = SleepTimeout.NeverSleep;
            Application.targetFrameRate = AppConst.GameFrameRate;

            Timers.inst.StartCoroutine(GetConfig());
        }
Esempio n. 2
0
 public void HOT_CheckUpdateSure(Action sureAction, Action cancelAction, HotEngine engine)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public void HOT_HotError(string error, HotEngine engine)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public void NetworkInterruption(HotEngine engine)
 {
     throw new NotImplementedException();
 }