HotUpdateEntry.cs 837 B

12345678910111213141516171819202122232425262728293031323334
  1. using Assets.Game.Launcher.HotUpdateProxy;
  2. using ET;
  3. using FairyGUI;
  4. using System;
  5. using UnityEngine;
  6. namespace GFGGame.HotUpdate
  7. {
  8. public class HotUpdateEntry
  9. {
  10. public static void Start()
  11. {
  12. VEngine.Logger.Loggable = false;
  13. //ET
  14. try
  15. {
  16. HotUpdateProxy.Instance.update = Game.Update;
  17. HotUpdateProxy.Instance.lateUpdate = Game.LateUpdate;
  18. HotUpdateProxy.Instance.onApplicationQuit = Game.Close;
  19. Game.EventSystem.Add(HotUpdateCodeLoader.Instance.GetTypes());
  20. Game.EventSystem.Publish(new ET.EventType.AppStart());
  21. }
  22. catch (Exception e)
  23. {
  24. Log.Error(e);
  25. }
  26. GameController.Init().Coroutine();
  27. }
  28. }
  29. }