示例#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);
        }
		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;
		}