| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | 
							- using Assets.Game.Launcher.HotUpdateProxy;
 
- using ET;
 
- using FairyGUI;
 
- using System;
 
- using System.Threading;
 
- using UnityEngine;
 
- namespace GFGGame.HotUpdate
 
- {
 
-     public class HotUpdateEntry
 
-     {
 
-         public static void Start()
 
-         {
 
-             VEngine.Logger.Loggable = false;
 
-             //ET
 
-             System.AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
 
-             {
 
-                 Log.Error(e.ExceptionObject.ToString());
 
-             };
 
-             SynchronizationContext.SetSynchronizationContext(ThreadSynchronizationContext.Instance);
 
-             LitJson.UnityTypeBindings.Register();
 
-             ETTask.ExceptionHandler += Log.Error;
 
-             Log.ILog = new UnityLogger();
 
-             Options.Instance = new Options();
 
-             TimeInfo.Instance.TimeZone = 8;
 
-             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);
 
-             }
 
-             GameController.Start();
 
-         }
 
-     }
 
- }
 
 
  |