Esempio n. 1
0
    public void ChangeCurrentRound()
    {
        TurnCount++;
        Player aux = CurrentPlayerTurn;

        CurrentPlayerTurn = NextPlayerTurn;
        NextPlayerTurn    = aux;
        OnChangeTurn?.Invoke();
    }
Esempio n. 2
0
    public void ChangeTurn()
    {
        switch (turn)
        {
        case WhoTurn.Player:
            turn = WhoTurn.AI;
            break;

        case WhoTurn.AI:
            turn = WhoTurn.Player;
            break;

        default:
            break;
        }

        OnChangeTurn?.Invoke(turn);
    }