public override void OnInspectorGUI() { DrawDefaultInspector(); AudioLooper alScript = (AudioLooper)target; if (GUILayout.Button("Play")) { alScript.Play(); } else if (GUILayout.Button("Playthrough")) { alScript.PlayThrough(); } else if (GUILayout.Button("Fadeout")) { alScript.Fadeout(); } }