コード例 #1
0
 private void OnApplicationQuit()
 {
     EventBus.Trigger(EventHooks.OnApplicationQuit);
 }
コード例 #2
0
 public void OnDrag(PointerEventData eventData)
 {
     EventBus.Trigger(EventHooks.OnDrag, gameObject, eventData);
 }
コード例 #3
0
 private void OnAnimatorIK(int layerIndex)
 {
     EventBus.Trigger(EventHooks.OnAnimatorIK, gameObject, layerIndex);
 }
コード例 #4
0
 private void OnGUI()
 {
     EventBus.Trigger(EventHooks.OnGUI);
 }
コード例 #5
0
 private void OnTriggerExit(Collider other)
 {
     EventBus.Trigger(EventHooks.OnTriggerExit, gameObject, other);
 }
コード例 #6
0
 private void OnAnimatorMove()
 {
     EventBus.Trigger(EventHooks.OnAnimatorMove, gameObject);
 }
コード例 #7
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     EventBus.Trigger(EventHooks.OnTriggerEnter2D, gameObject, other);
 }
 private void OnCollisionExit(Collision collision)
 {
     EventBus.Trigger(EventHooks.OnCollisionExit, gameObject, collision);
 }
コード例 #9
0
 protected virtual void TriggerRegisteredEvent <TArgs>(EventHook hook, TArgs args)
 {
     EventBus.Trigger(hook, args);
 }
コード例 #10
0
 private void Start()
 {
     GetComponent <Button>()?.onClick
     ?.AddListener(() => EventBus.Trigger(EventHooks.OnButtonClick, gameObject));
 }
コード例 #11
0
 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));
コード例 #13
0
 public void OnSubmit(BaseEventData eventData)
 {
     EventBus.Trigger(EventHooks.OnSubmit, gameObject, eventData);
 }