public override void OnInspectorGUI() { DrawDefaultInspector(); ZapEvent zapEvent = (ZapEvent)target; if (GUILayout.Button("Trigger Event")) { zapEvent.Trigger(); } }
private void Unsubscribe(ZapEvent zapEvent) => zapEvent.Unsubscribe(this);
private void Subscribe(ZapEvent zapEvent) => zapEvent.Subscribe(this);