private void Start() { _quit.onClick.AddListener(OnQuitClick); _rebuildMap.onClick.AddListener(OnRebuildMapClick); _map = GameInstances.Instance.Map; hexMapGenerator = new HexMapGenerator(_map, _hexMesh, _gridParent); hexMapGenerator.CreateMap(); }
private void OnRebuildMapClick() { _hexCellSelector.Reset(); hexMapGenerator.CreateMap(); }