コード例 #1
0
    //开始拖拽事件添加方法
    public void AddOnBeginDrag(string controlName, UnityAction <BaseEventData> action)
    {
        UIBehaviour tmpBehaviour = GetBehaviour(controlName);

        if (tmpBehaviour != null)
        {
            tmpBehaviour.AddOnBeginDrag(action);
        }
    }