//点击事件添加方法 public void AddPointClick(string controlName, UnityAction <BaseEventData> action) { UIBehaviour tmpBehaviour = GetBehaviour(controlName); if (tmpBehaviour != null) { tmpBehaviour.AddPointClick(action); } }
/// <summary> /// 添加点击事件 /// </summary> /// <param name="uiName"></param> /// <param name="action"></param> public void AddPointClick(string uiName, UnityAction <BaseEventData> action) { UIBehaviour uiBehaviour = GetBehaviour(uiName); uiBehaviour.AddPointClick(action); }