private void Start() { map = new Map(); gridPrefabVisual.Setup(map.GetGrid()); isGameActive = true; map.OnEnTireMapRevealed += Map_OnEnTireMapRevealed; }
private void Start() { //create the tilemap tilemap = new Tilemap(gridSettings.gridWidth, gridSettings.gridHeight, gridSettings.cellSize, new Vector3(gridSettings.offsetX, gridSettings.offsetY)); //setup the tilemap gridPrefabVisual.Setup(tilemap.GetGrid()); UpdateBarLimit(); }
void Start() { Vector2Int mapDimensions = GameValuesController.instance.GetMapDimensions(); int minesToPlace = GameValuesController.instance.GetMinesToPlaceCount(mapDimensions); map = new Map(mapDimensions, minesToPlace); gridPrefabVisual.Setup(map.GetGrid()); isGameActive = true; isPaused = false; flagCountHandler.Setup(map); CreateInputHandler(); map.OnEntireMapRevealed += Map_OnEntireMapRevealed; }