Пример #1
0
 public void gameover()
 {
     screenList["GameOver"].SetActive(true);
     if (currentTurn.ToString() == "PlayerOne")
     {
         screenList["GameOver"].GetComponentInChildren <Text>().text = "You won!";
     }
     else
     {
         screenList["GameOver"].GetComponentInChildren <Text>().text = "You lost!";
     }
 }