示例#1
0
        private void LateUpdate()
        {
            Manager m         = m_Manager;
            float   deltaTime = Time.deltaTime;

            if (m != null)
            {
                m.Update(deltaTime, RoutinePhase.LateUpdate);
                if (m.Fibers.GetYieldCount(YieldPhase.WaitForLateUpdate) > 0)
                {
                    m.UpdateYield(deltaTime, YieldPhase.WaitForLateUpdate);
                }
            }
        }
示例#2
0
        private void LateUpdate()
        {
            Manager m         = m_Manager;
            float   deltaTime = Time.deltaTime;

            if (m != null)
            {
                // lateupdate
                m.Update(deltaTime, RoutinePhase.LateUpdate);
                if (m.Fibers.GetYieldCount(YieldPhase.WaitForLateUpdate) > 0)
                {
                    m.UpdateYield(deltaTime, YieldPhase.WaitForLateUpdate);
                }

                if (m_LastKnownVsync)
                {
                    m_Manager.UpdateAsync(1);
                }
            }
        }