コード例 #1
0
ファイル: GameManager.cs プロジェクト: ltrout/TankBattle
        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;
		}