public override void OnInspectorGUI() { DrawDefaultInspector(); PlaylistScript playlistScript = (PlaylistScript)target; if (GUILayout.Button("Play Track")) { playlistScript.PlaySomething(); } if (GUILayout.Button("Spawn Vinyl")) { playlistScript.SpawnVinyl(); } }