public void UpdateTile(TileObject tile, TileDefinition definition) { var pos = tileManager.GetIndexAt(tile.transform.position); CmdUpdateTile(pos.x, pos.y, definition); }
public void DestroyTile(TileObject tile) { var pos = tileManager.GetIndexAt(tile.transform.position); CmdDestroyTile(pos.x, pos.y); }
public void DestroyTile(TileObject tileObject) { var index = GetIndexAt(tileObject.transform.position); DestroyTile(index.x, index.y); }