private void ClickEvent(uGUIEventSystemSupporter s, BaseEventData data) { if (callDelegateFlag) { ClickCallBack.run(s); ClickCallBackOfButtonComponent.run(this); } }
protected override void Awake() { if (isInitialized) { return; } EventSupporter = transform.gameObject.GetComponent <uGUIEventSystemSupporter>(); EventSupporter.AddCallBack <IPointerClickHandler>(ClickEvent); // another wait to do isInitialized = true; }
private void ButtonEvent_Test(uGUIEventSystemSupporter s) { LogUtil.Log("Click Button Test"); }