public override void OnInspectorGUI() { CubeGrid cubeGrid = (CubeGrid)target; DrawDefaultInspector(); if (GUILayout.Button("Create Grid")) { cubeGrid.CreateGrid(); } }
public override void OnInspectorGUI() { CubeGrid cubeGrid = (CubeGrid)target; DrawDefaultInspector(); if (GUILayout.Button("Create Grid")) { cubeGrid.CreateGrid(); } }