コード例 #1
0
    public void SwitchPlayer()
    {
        pathfinding.ResetPaths();
        ResetMovementPoints();

        currentPlayer = players[0] == currentPlayer ? players[1] : players[0];

        if (currentPlayer.isAI)
        {
            StartCoroutine(PlayAI());
        }
        else
        {
            CalculatePossibleEnemyMoves();
        }
    }