private void OnApplicationQuit() { EventBus.Trigger(EventHooks.OnApplicationQuit); }
public void OnDrag(PointerEventData eventData) { EventBus.Trigger(EventHooks.OnDrag, gameObject, eventData); }
private void OnAnimatorIK(int layerIndex) { EventBus.Trigger(EventHooks.OnAnimatorIK, gameObject, layerIndex); }
private void OnGUI() { EventBus.Trigger(EventHooks.OnGUI); }
private void OnTriggerExit(Collider other) { EventBus.Trigger(EventHooks.OnTriggerExit, gameObject, other); }
private void OnAnimatorMove() { EventBus.Trigger(EventHooks.OnAnimatorMove, gameObject); }
private void OnTriggerEnter2D(Collider2D other) { EventBus.Trigger(EventHooks.OnTriggerEnter2D, gameObject, other); }
private void OnCollisionExit(Collision collision) { EventBus.Trigger(EventHooks.OnCollisionExit, gameObject, collision); }
protected virtual void TriggerRegisteredEvent <TArgs>(EventHook hook, TArgs args) { EventBus.Trigger(hook, args); }
private void Start() { GetComponent <Button>()?.onClick ?.AddListener(() => EventBus.Trigger(EventHooks.OnButtonClick, gameObject)); }
public void OnScroll(PointerEventData eventData) { EventBus.Trigger(EventHooks.OnScroll, gameObject, eventData); }
private void Start() => GetComponent <Toggle>()?.onValueChanged?.AddListener((value) => EventBus.Trigger(EventHooks.OnToggleValueChanged, gameObject, value));
public void OnSubmit(BaseEventData eventData) { EventBus.Trigger(EventHooks.OnSubmit, gameObject, eventData); }