コード例 #1
0
 public void OnCancel(BaseEventData eventData)
 {
     EventBus.Trigger(EventHooks.OnCancel, gameObject, eventData);
 }
コード例 #2
0
 public void OnMove(AxisEventData eventData)
 {
     EventBus.Trigger(EventHooks.OnMove, gameObject, eventData);
 }
コード例 #3
0
 private void Start()
 {
     GetComponent <Button>()?.onClick
     ?.AddListener(() => EventBus.Trigger(EventHooks.OnButtonClick, gameObject));
 }
コード例 #4
0
 public void OnSubmit(BaseEventData eventData)
 {
     EventBus.Trigger(EventHooks.OnSubmit, gameObject, eventData);
 }
コード例 #5
0
 protected virtual void TriggerRegisteredEvent <TArgs>(EventHook hook, TArgs args)
 {
     EventBus.Trigger(hook, args);
 }
 private void Start()
 {
     GetComponent <Slider>()?.onValueChanged?.AddListener((value) =>
                                                          EventBus.Trigger(EventHooks.OnSliderValueChanged, gameObject, value));
 }
コード例 #7
0
 private void OnGUI()
 {
     EventBus.Trigger(EventHooks.OnGUI);
 }
コード例 #8
0
 private void OnAnimatorMove()
 {
     EventBus.Trigger(EventHooks.OnAnimatorMove, gameObject);
 }
コード例 #9
0
 public void OnPointerExit(PointerEventData eventData) =>
 EventBus.Trigger(EventHooks.OnPointerExit, gameObject, eventData);
 private void Start()
 {
     GetComponent <InputField>()?.onEndEdit?.AddListener((value) =>
                                                         EventBus.Trigger(EventHooks.OnInputFieldEndEdit, gameObject, value));
 }
コード例 #11
0
 private void OnTriggerEnter(Collider other)
 {
     EventBus.Trigger(EventHooks.OnTriggerEnter, gameObject, other);
 }
コード例 #12
0
 public void OnBeginDrag(PointerEventData eventData)
 {
     EventBus.Trigger(EventHooks.OnBeginDrag, gameObject, eventData);
 }
コード例 #13
0
 private void OnAnimatorIK(int layerIndex)
 {
     EventBus.Trigger(EventHooks.OnAnimatorIK, gameObject, layerIndex);
 }
コード例 #14
0
 private void OnBecameVisible()
 {
     EventBus.Trigger(EventHooks.OnBecameVisible, gameObject);
 }
コード例 #15
0
 private void OnApplicationQuit()
 {
     EventBus.Trigger(EventHooks.OnApplicationQuit);
 }
コード例 #16
0
 private void OnCollisionExit(Collision collision)
 {
     EventBus.Trigger(EventHooks.OnCollisionExit, gameObject, collision);
 }
 private void OnControllerColliderHit(ControllerColliderHit hit)
 {
     EventBus.Trigger(EventHooks.OnControllerColliderHit, gameObject, hit);
 }