Пример #1
0
    private void Start()
    {
        map = new Map();
        gridPrefabVisual.Setup(map.GetGrid());
        isGameActive = true;

        map.OnEnTireMapRevealed += Map_OnEnTireMapRevealed;
    }
Пример #2
0
    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();
    }
Пример #3
0
    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;
    }