private void OnTileCreated(TileCreatedEvent customEvent)
        {
            Vector2Int newTilePosition = FromWorldToGrid(customEvent.Tile.transform.position);

            if (tiles[newTilePosition.x, newTilePosition.y] == null)
            {
                tiles[newTilePosition.x, newTilePosition.y] = customEvent.Tile;
                customEvent.Tile.gridPosition = FromWorldToGrid(customEvent.Tile.transform.position);
            }
            else
            {
                Debug.LogError($"Tilemap has already registered a tile at the position {customEvent.Tile.transform.position}.");
                Destroy(customEvent.Tile);
            }
        }
 private void OnTileCreated(TileCreatedEvent customEvent)
 {
     needStarPathReset = true;
 }