Hey guys,
I want to assign an EventDelegate to a UIButton in addition to parameters,
I know I can do this :
button.GetComponent<UIButton>().onClick.Add(new EventDelegate(targetGameObject, "MethodToCall"));
But, how can I add parameters ?
So, If the MethodToCall has 2 parameters, I can pass them.
Please, help.