Пример #1
0
    private void Start()
    {
        _quit.onClick.AddListener(OnQuitClick);
        _rebuildMap.onClick.AddListener(OnRebuildMapClick);

        _map            = GameInstances.Instance.Map;
        hexMapGenerator = new HexMapGenerator(_map, _hexMesh, _gridParent);
        hexMapGenerator.CreateMap();
    }
Пример #2
0
 private void OnRebuildMapClick()
 {
     _hexCellSelector.Reset();
     hexMapGenerator.CreateMap();
 }