public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Generate")) { flockManager = (FlockManager)target; flockManager.GenerateFlock(); } if (GUILayout.Button("Reset")) { flockManager = (FlockManager)target; flockManager.RemoveFlock(); } }