public override void OnInspectorGUI() { DrawDefaultInspector(); if (GUILayout.Button("generateMap")) { voxelBuilder.SyncPos(); voxelBuilder.GenerateMap(); SceneView.RepaintAll(); } if (GUILayout.Button("Up")) { voxelBuilder.SetNowFloorIndex(1); SceneView.RepaintAll(); } if (GUILayout.Button("Down")) { voxelBuilder.SetNowFloorIndex(-1); SceneView.RepaintAll(); } }