예제 #1
0
    public Tile CreateTile(Vector2Int coordinates, Tile.Info info)
    {
        Tile newTile = CreateTile(coordinates);

        newTile.TileType = info.type;
        newTile.SpawneableForPlayerNumber = info.spawneableForPlayerNumber;

        return(newTile);
    }
 public TileToTileType(TileBase tile, Tile.Info info)
 {
     this.tile = tile ?? throw new ArgumentNullException(nameof(tile));
     this.info = info;
 }