public void SetOnDragBeginEvent(UnityAction <GameObject, Vector2> onDragBegin) { DragListener.Get(gameObject).SetOnDragBeginEvent(onDragBegin); }
public void RemoveOnDragEndEvent(UnityAction <GameObject, Vector2> onDragEnd) { DragListener.Get(gameObject).RemoveOnDragEndEvent(onDragEnd); }
// 拖拽 public void AddOnDragEvent(UnityAction <GameObject, Vector2> onDrag) { DragListener.Get(gameObject).AddOnDragEvent(onDrag); }