예제 #1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            ZapEvent zapEvent = (ZapEvent)target;

            if (GUILayout.Button("Trigger Event"))
            {
                zapEvent.Trigger();
            }
        }
예제 #2
0
 private void Unsubscribe(ZapEvent zapEvent) => zapEvent.Unsubscribe(this);
예제 #3
0
 private void Subscribe(ZapEvent zapEvent) => zapEvent.Subscribe(this);