NGUI EventDelegate 传递参数

EventDelegate ev = new EventDelegate();
ev.methodName = "mymethod";
ev.parameters[0] = new EventDelegate.Parameter();
ev.parameters[0].obj = gameObject.transform;
EventDelegate.Add(gameObject.GetCompnent<UIButton>().OnClick,ev);

参数只能是gameObject的属性

http://www.narkii.com/club/thread-336701-1.html

posted on 2015-08-05 15:03  黑白熊1989  阅读(313)  评论(0编辑  收藏  举报

导航