예제 #1
0
 static public int set_onTouchHandler(IntPtr l)
 {
     try {
         Lui.LTouchView self = (Lui.LTouchView)checkSelf(l);
         UnityEngine.Events.UnityAction <UnityEngine.Vector2> v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onTouchHandler = v;
         }
         else if (op == 1)
         {
             self.onTouchHandler += v;
         }
         else if (op == 2)
         {
             self.onTouchHandler -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #2
0
 static public int OnPointerDown(IntPtr l)
 {
     try {
         Lui.LTouchView self = (Lui.LTouchView)checkSelf(l);
         UnityEngine.EventSystems.PointerEventData a1;
         checkType(l, 2, out a1);
         self.OnPointerDown(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }