Пример #1
0
        private IEnumerator RoundEnding()
        {
            // Stop tanks from moving.
            DisableTankControl();

            RoundWinner = null;

            RoundWinner = GetRoundWinner();

            if (RoundWinner != null)
            {
                RoundWinner.Wins++;
            }

            GameWinner = GetGameWinner();

            string message = EndMessage();

            MessageText.text = message;

            yield return(EndWait);
        }
Пример #2
0
		private IEnumerator RoundEnding ()
		{
			// Stop tanks from moving.
			DisableTankControl ();

			RoundWinner = null;

			RoundWinner = GetRoundWinner ();

			if (RoundWinner != null)
				RoundWinner.Wins++;

			GameWinner = GetGameWinner ();

			string message = EndMessage ();
			MessageText.text = message;

			yield return EndWait;
		}