Exemple #1
0
    public void UpdateFromData(LevelTilemap level)
    {
        LevelTileData data = null;

        for (int x = 0; x < chunkSize; x++)
        {
            for (int y = 0; y < chunkSize; y++)
            {
                data = tilesData[y * chunkSize + x];
                if (data == null)
                {
                    continue;
                }
                level.tilemap.SetTile(ToTilePosition(x, y), data.GetTile());
            }
        }
    }
Exemple #2
0
 public virtual void EditorApplySaveFileToTile(int x, int y, LevelTileData data)
 {
     SetTile(IndexToTilemap(x, y), data.GetTile());
 }