Exemplo n.º 1
0
    void SectionOver(bool gameIsADraw)
    {
        SetBoardInteractable(false);

        if (gameIsADraw)
        {
            gameOverText.text = "-";
        }
        else
        {
            gameOverText.text = globalController.GetPlayerSide();
        }

        gameOverPanel.SetActive(true);
        globalController.CheckForWin(gamePosition);
    }
Exemplo n.º 2
0
 public void SetSpace()
 {
     buttonText.text     = globalController.GetPlayerSide();
     button.interactable = false;
     gameController.EndTurn(position);
 }