void Start ()
{
EventDelegate NormalAttackEvent = new EventDelegate(this, "OnHello"); //UIBUTTON的监听事件
GameObject.Find("Normal").GetComponent<UIButton>().onClick.Add(OnHello);
{
EventDelegate NormalAttackEvent = new EventDelegate(this, "OnHello"); //UIBUTTON的监听事件
GameObject.Find("Normal").GetComponent<UIButton>().onClick.Add(OnHello);
} //Start end
public void OnHello()
{
print("Hello world!");
}