Exemplo n.º 1
0
 private void EndGame(bool isTie)
 {
     Debug.Log("ended");
     this.gameOverCanvas.SetActive(true);
     if (!isTie)
     {
         gameOverDisplay.text = String.Format("WINNER : {0}\n---------------\n(PLAYER {1})", turnTracker.GetCurrentTurnPieceType() == GameplayPieceTypes.O_Pieces ? "O" : "X", (int)turnTracker.GetCurrentPlayerTurn() + 1);
     }
     else
     {
         gameOverDisplay.text = "It's a tie";
     }
 }