Exemple #1
0
    public void SwapTile(Tile other)
    {
        Sprite otherSprite = other.TileSprite;

        other.TileSprite = TileSprite;
        this.TileSprite  = otherSprite;

        TileType otherType = other.Type;

        other.Type = Type.ChangeParent(other);
        this.Type  = otherType.ChangeParent(this);
    }