Beispiel #1
0
    //public void OnBeginDrag(BaseEventData eventData)
    //{
    //    var g = EventSystem.current.currentSelectedGameObject;
    //    UGUIEvent.onCancelHandle(g, eventData);
    //}

    public void OnDrag(BaseEventData eventData)
    {
        var g = EventSystem.current.currentSelectedGameObject;
        PointerEventData ped = eventData as PointerEventData;

        UGUIEvent.onDragHandle(g, ped.delta);
    }
Beispiel #2
0
 static public int onDragHandle_s(IntPtr l)
 {
     try {
         UnityEngine.GameObject a1;
         checkType(l, 1, out a1);
         UnityEngine.Vector2 a2;
         checkType(l, 2, out a2);
         UGUIEvent.onDragHandle(a1, a2);
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }