/// <summary> /// 注册按钮事件 /// </summary> /// <param name="buttonName">按钮节点名称</param> /// <param name="delHandle">委托:需要注册的方法</param> protected void RigisterButtonObjectEvent(string buttonName, EventTriggerListener.VoidDelegate delHandle) { GameObject Button = UnityHelper.FindTheChildNode(gameObject, buttonName).gameObject; //给按钮注册事件方法 if (Button != null) { EventTriggerListener.GetLister(Button).onClick = delHandle; } }