public void InstantiateTile(Tile tile, Vector2 position) { TileDisplay newTileDisplay = Instantiate(tileDisplay, this.transform); // instantiatedTileDisplays.Add(position, newTileDisplay); newTileDisplay.SetTile(tile, position); }
private void SwapTiles(TileDisplay source, Point srcTile, TileDisplay dest, Point destTile) { byte tileA = source.GetTile(srcTile); byte tileB = dest.GetTile(destTile); source.SetTile(srcTile, tileB); dest.SetTile(destTile, tileA); }