/// <summary> /// RoundEnd state function /// </summary> protected void RoundEnd() { DisableTankControl(); m_RoundWinner = GetRoundWinner(); if (m_RoundWinner != null) { m_RoundWinner.AddWin(); } m_GameWinner = GetGameWinner(); RpcRoundEnding(); if (m_GameWinner != null) { SetTimedTransition(GameState.EndGame, m_EndDelay); } else { SetTimedTransition(GameState.Preplay, m_EndDelay); } }