public override void OnInspectorGUI() { DrawDefaultInspector(); AsteroidController script = (AsteroidController)target; if (GUILayout.Button("Generate Asteroids")) { script.GenerateAsteroids(); } if (GUILayout.Button("Delete Asteroids")) { script.DeleteAsteroids(); } }