public override void OnInspectorGUI() { DrawDefaultInspector(); QuizzedTheme myScript = (QuizzedTheme)target; if (GUILayout.Button("Apply Theme")) { myScript.ApplyTheme(); } }