Assets/Scripts/Managers/GameManager.cs
@@ -25,6 +25,8 @@ [NonSerialized] public List<Vector3Int> destroyedTiles = new List<Vector3Int>(); public GameObject pickups; public Tilemap fogTilemap; public FogOfWar fogOfWar; private void Awake() { @@ -52,6 +54,7 @@ SaveDataMap mapState = SaveSystem.LoadMapState(); if (mapState != null) { //fogOfWar.LoadFromSaveData(mapState.fogOfWarData); generateTileMap.SetSettingsFromSeed(mapState.seed); if (mapState.destroyedTiles != null && mapState.destroyedTiles.Count > 0) {