コード例 #1
0
 void Update()
 {
     if (!timerOn && gameActive)
     {
         StartCoroutine("CountSecond");
         timerOn = true;
     }
     if (timerP1 == 0 && gameActive)
     {
         player1Name.color = Color.red;
         tournamentManager.PlayerLostGame(true);
         gameActive = false;
     }
     if (timerP2 == 0 && gameActive)
     {
         player2Name.color = Color.red;
         tournamentManager.PlayerLostGame(false);
         gameActive = false;
     }
 }