using UnityEngine;
public class Test : MonoBehaviour
{
void Start ()
{
UIButton btn = GetComponent<UIButton>();
EventDelegate del
= new EventDelegate
(this,
"MyClick"); del.parameters[0].value = 123;
EventDelegate.Set(btn.onClick, del);
}
void MyClick (int someValue)
{
Debug.Log(someValue);
}
}