示例#1
0
        private void FixedUpdate()
        {
            FixedUpdateEvent.Instance.DeltaTime = Time.fixedDeltaTime;
            Flow flow = EngineServiceInternal.GetFlow();

            flow.TryInvoke(FixedUpdateEvent.Instance, typeof(FixedUpdateEventFireHandler));
            flow.TryInvoke(FixedUpdateEvent.Instance, typeof(FixedUpdateEventCompleteHandler));
        }
 private void SendAfterFixedUpdateEventIfNeed()
 {
     if (this.sendAfterFixedUpdateEvent)
     {
         InternalPreciseTime.AfterFixedUpdate();
         Flow flow = EngineServiceInternal.GetFlow();
         Invoke();
         this.sendAfterFixedUpdateEvent = false;
     }
 }
示例#3
0
        private void Update()
        {
            float deltaTime = Time.deltaTime;

            TimeUpdateEvent.Instance.DeltaTime  = deltaTime;
            EarlyUpdateEvent.Instance.DeltaTime = deltaTime;
            UpdateEvent.Instance.DeltaTime      = deltaTime;
            Flow flow = EngineServiceInternal.GetFlow();

            flow.TryInvoke(TimeUpdateEvent.Instance, typeof(TimeUpdateFireHandler));
            flow.TryInvoke(TimeUpdateEvent.Instance, typeof(TimeUpdateCompleteHandler));
            flow.TryInvoke(EarlyUpdateEvent.Instance, typeof(EarlyUpdateFireHandler));
            flow.TryInvoke(EarlyUpdateEvent.Instance, typeof(EarlyUpdateCompleteHandler));
            flow.TryInvoke(UpdateEvent.Instance, typeof(UpdateEventFireHandler));
            flow.TryInvoke(UpdateEvent.Instance, typeof(UpdateEventCompleteHandler));
            EngineServiceInternal.GetFlow();
            EngineServiceInternal.DelayedEventManager.Update((double)Time.time);
        }