// behaviour void Start() { grid = GetComponent <MapGrid>(); tilemapRenderer.enabled = false; tilemap.enabled = false; pool = ObjectPooler.instance; foreach (ScriptableTile tile in tileList) { tileDictionary.Add(tile.name, tile); } if (staticBuildingContainer != null) { List <GameObject> staticList = new List <GameObject>(); foreach (Transform t in staticBuildingContainer) { staticList.Add(t.gameObject); } foreach (GameObject go in staticList) { grid.AddGameObject(go, ConstructionLayer.LayerType.Building, false, false); } } }