Ejemplo n.º 1
0
 private void ClickEvent(uGUIEventSystemSupporter s, BaseEventData data)
 {
     if (callDelegateFlag)
     {
         ClickCallBack.run(s);
         ClickCallBackOfButtonComponent.run(this);
     }
 }
Ejemplo n.º 2
0
    protected override void Awake()
    {
        if (isInitialized)
        {
            return;
        }

        EventSupporter = transform.gameObject.GetComponent <uGUIEventSystemSupporter>();

        EventSupporter.AddCallBack <IPointerClickHandler>(ClickEvent);

        // another wait to do

        isInitialized = true;
    }
Ejemplo n.º 3
0
 private void ButtonEvent_Test(uGUIEventSystemSupporter s)
 {
     LogUtil.Log("Click Button Test");
 }