Пример #1
0
    private void FixedUpdate()
    {
        if (!m_IsGameRunning)
        {
            return;
        }

        OnFixedUpdate();

        m_HandleEnumerator = m_DefaultControllers.GetEnumerator();

        while (m_HandleEnumerator.MoveNext())
        {
            if (m_HandleEnumerator.Current.Value != null)
            {
                m_HandleEnumerator.Current.Value.FixedUpdateAction();
            }
        }

        if (m_CurrentAuthorityController != null)
        {
            m_CurrentAuthorityController.FixedUpdateAction();
        }
    }