using Assets.Game.Launcher.HotUpdateProxy; using ET; using FairyGUI; using System; using UnityEngine; namespace GFGGame.HotUpdate { public class HotUpdateEntry { public static void Start() { VEngine.Logger.Loggable = false; Debug.Log("HotUpdateEntry Start"); //ET try { HotUpdateProxy.Instance.update = Game.Update; HotUpdateProxy.Instance.lateUpdate = Game.LateUpdate; HotUpdateProxy.Instance.onApplicationQuit = Game.Close; Game.EventSystem.Add(HotUpdateCodeLoader.Instance.GetTypes()); Game.EventSystem.Publish(new ET.EventType.AppStart()); } catch (Exception e) { Log.Error(e); } ViewManager.Init(); //日志 LogController.Instance.Init(); //全局 GameGlobal.Init(); //缓存 LocalCache.InitLocalData(); //sqlite SqliteController.Instance.Init(false, ResPathUtil.SQLITE_FILE_PATH); //开始游戏 GameController.Start(); Debug.Log("HotUpdateEntry Start completed"); } } }