public void Update() { if (_map == null) { return; } switch (_visualizationType) { case (MapVisualization.Type.Mesh): _visualization = new MeshMapVisualization(transform, _dfltMat); break; case (MapVisualization.Type.Text): _visualization = new TextMapVisualization(transform); break; } _visualization.CreateGO(_map, _voxelPieceIdentifier.Pieces); }
public void Generate() { _generator.CreateMap(_voxelPieceIdentifier.Pieces); _map = _generator.Map; _visualization.CreateGO(_map, _voxelPieceIdentifier.Pieces); }