protected virtual void MapWasGenerated() { // Spawn buildings to build at spawn BaseBuildingsClass newBuilding = null; foreach (MapStartingBuildings building in m_ListOfBuildingsToBuildAtSpawn) { foreach (Vector2Int pos in building.spawnGridPositions) { newBuilding = MapManager.GetInstance().PlaceNewBuildingIntoMap_WithoutResources(pos, building.buildingID); newBuilding.SetBuildingPlayerOptions(building.isMovable, building.isRemovable); } } // Allocate resources foreach (MapStartingResource resource in m_ListOfStartingResources) { ResourceManager.GetInstance().SetResource(resource.resourceID, resource.value); } }