Пример #1
0
        public RuntimeService()
        {
            _runtimeGameObject = new GameObject("RuntimeClients");

            Object.DontDestroyOnLoad(_runtimeGameObject);

            _runtimeClient = RegisterClient <RuntimeClient>();

            _runtimeClient.OnUpdate      += () => OnUpdate?.Invoke();
            _runtimeClient.OnFixedUpdate += () => OnFixedUpdate?.Invoke();
            _runtimeClient.OnLateUpdate  += () => OnLateUpdate?.Invoke();
            _runtimeClient.OnQuit        += () => OnQuit?.Invoke();
            _runtimeClient.OnPause       += pause => OnPause?.Invoke(pause);
        }
Пример #2
0
 private void LateUpdate()
 {
     OnLateUpdate?.Invoke();
 }
Пример #3
0
 public virtual void LateUpdateCallback(float deltaTime)
 {
     OnLateUpdate?.Invoke(deltaTime);
 }
 protected virtual void LateUpdate()
 {
     OnLateUpdate?.Invoke(Time.deltaTime);
 }
 void LateUpdate()
 {
     OnLateUpdate?.Invoke(Time.deltaTime);
     OnLateRealTimeUpdate?.Invoke(Time.unscaledDeltaTime);
 }
Пример #6
0
 public static void BroadcastOnLateUpdate()
 {
     OnLateUpdate?.Invoke();
 }
 void LateUpdate() => OnLateUpdate?.Invoke();
Пример #8
0
 //更快的帧循环
 private void LateUpdate()
 {
     mainStart?.LateUpdate();
     OnLateUpdate?.Invoke();
 }
Пример #9
0
 protected override void StateLateUpdate()
 {
     base.StateLateUpdate();
     OnLateUpdate?.Invoke(this);
 }
Пример #10
0
 protected virtual void LateUpdate()
 {
     OnLateUpdate?.Invoke();
 }
Пример #11
0
 public static void LateUpdate()
 => OnLateUpdate?.Invoke();
Пример #12
0
 private void LateUpdate()
 {
     OnLateUpdate?.Invoke(Time.deltaTime);
 }
Пример #13
0
 public void InvokeOnLateUpdate(float fDelta)
 {
     OnLateUpdate?.Invoke(this, fDelta);
 }