예제 #1
0
    //Switches which player is playing. Coroutine runs until the player has decided on a move.
    void CycleTurns()
    {
        if (currentPlayer != null)
        {
            playerTurns.Enqueue(currentPlayer);
        }
        currentPlayer = playerTurns.Dequeue();

        StartCoroutine(currentPlayer.GetDecision(gameBoard));
    }