Exemplo n.º 1
0
    public GameObject PlaceAt(Vector2Int position, ChessType input)
    {
        DestroyPreviewChess();
        GameObject temp;

        if (MapController.instance.CanWalk(position) && MapController.instance.IsSide(position, Side.playerA))
        {
            temp = chessController.PlaceChessAt(position, Side.playerA, input);
        }
        else
        {
            Debug.Log("该位置无法放置");
            return(null);
        }
        return(temp);
    }