public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; CharacterEvent e = target as CharacterEvent; if (GUILayout.Button("Trigger")) { e.Raise(DummyCharacter.NewDummy); } }