示例#1
0
    private IEnumerator RoundEnding()
    {
        DisableTankControl();

        m_RoundWinner = null;

        m_RoundWinner = m_GameMode.GetRoundWinner(m_Tanks);

        if (m_RoundWinner != null)
        {
            m_RoundWinner.m_TankScore.AddWin();
        }

        m_GameWinner = GetGameWinner();

        string message = EndMessage();

        m_TimeText.text    = "";
        m_MessageText.text = message;

        yield return(m_EndWait);
    }