public void SetTileSprite(Vector2 gridPos, TileObject.TileSprite sprite) { TileObject tileObject = grid.GetGridObject((int)gridPos.x, (int)gridPos.y); if (tileObject != null) { tileObject.SetTileSprite(sprite); } }
public void SetTileSprite(Vector3 worldPos, TileObject.TileSprite sprite) { TileObject tileObject = grid.GetGridObject(worldPos); if (tileObject != null) { tileObject.SetTileSprite(sprite); } }