Exemplo n.º 1
0
    /// <summary>
    /// Makes any necessary changes when destroying a piece.
    /// </summary>
    void DestroyPiece()
    {
        PieceController curPC = pieceToDestroy.GetComponent <PieceController>();

        Vector2Int[] tileCoords = curPC.GetTileCoords();
        RemovePiece(pieceToDestroy);
        Destroy(pieceToDestroy);
        BoardController.instance.PieceRemoved(tileCoords);
    }