Beispiel #1
0
    public void StartNewRound(bool isTie = false)
    {
        StateHandler.Instance.StartRound();



        round++;
        if (!isTie)
        {
            if (isPlayerOnesTurn)
            {
                playerOne_Score++;
            }
            else
            {
                playerTwo_Score++;
            }
        }

        scoreText.text = "Score \n" + playerOne_Score + "|" + playerTwo_Score;

        if (playerOne_Score >= 3 || playerTwo_Score >= 3)
        {
            return;
        }



        boardGenerator.ResetBoard();
        turn = 0;
        StartNewTurn();
    }