Exemplo n.º 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);
        }
Exemplo n.º 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;
		}