GameApplctionMono.cs 667 B

123456789101112131415161718192021222324252627282930
  1. using Fort23.Core;
  2. using UnityEditor;
  3. using UnityEngine;
  4. namespace GameUI
  5. {
  6. public class GameApplctionMono : MonoBehaviour
  7. {
  8. public GameApplction GameApplction;
  9. public void Update()
  10. {
  11. #if UNITY_EDITOR
  12. // if (EditorApplication.isPaused)
  13. // {
  14. // return;
  15. // }
  16. #endif
  17. EventSystem.Instance.Update();
  18. AssetBundleLoadManager.Instance.UpdateBundle();
  19. TimeHelper.clientFrame = TimeHelper.ClientFrame() + (long)(Time.deltaTime * 1000);
  20. }
  21. public void LateUpdate()
  22. {
  23. EventSystem.Instance.LateUpdate();
  24. }
  25. }
  26. }