//结束拖拽事件添加方法 public void AddOnEndDrag(string controlName, UnityAction <BaseEventData> action) { UIBehaviour tmpBehaviour = GetBehaviour(controlName); if (tmpBehaviour != null) { tmpBehaviour.AddOnEndDrag(action); } }