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

        OnUpdate();

        m_HandleEnumerator = m_DefaultControllers.GetEnumerator();

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

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