Exemple #1
0
    public void AddOnClickListenerByCreate(Button button, string compName, InputEventHandle <InputUIOnClickEvent> callback, string parm = null)
    {
        InputEventRegisterInfo <InputUIOnClickEvent> info = InputUIEventProxy.AddOnClickListener(button, UIEventKey, compName, parm, callback);

        m_OnClickEvents.Add(info);
    }
Exemple #2
0
    public void AddOnClickListener(string buttonName, InputEventHandle <InputUIOnClickEvent> callback, string parm = null)
    {
        InputEventRegisterInfo <InputUIOnClickEvent> info = InputUIEventProxy.AddOnClickListener(GetButton(buttonName), UIEventKey, buttonName, parm, callback);

        m_OnClickEvents.Add(info);
    }