コード例 #1
0
 static public int set_onControlHandler(IntPtr l)
 {
     try {
         Lui.LControlView self = (Lui.LControlView)checkSelf(l);
         UnityEngine.Events.UnityAction <System.Single, System.Single, System.Boolean> v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onControlHandler = v;
         }
         else if (op == 1)
         {
             self.onControlHandler += v;
         }
         else if (op == 2)
         {
             self.onControlHandler -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #2
0
 static public int get_joyStick(IntPtr l)
 {
     try {
         Lui.LControlView self = (Lui.LControlView)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.joyStick);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static public int get_relocateWithAnimation(IntPtr l)
 {
     try {
         Lui.LControlView self = (Lui.LControlView)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.relocateWithAnimation);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
 static public int set_relocateWithAnimation(IntPtr l)
 {
     try {
         Lui.LControlView self = (Lui.LControlView)checkSelf(l);
         System.Boolean   v;
         checkType(l, 2, out v);
         self.relocateWithAnimation = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int set_radius(IntPtr l)
 {
     try {
         Lui.LControlView self = (Lui.LControlView)checkSelf(l);
         System.Int32     v;
         checkType(l, 2, out v);
         self.radius = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #6
0
 static public int set_centerPoint(IntPtr l)
 {
     try {
         Lui.LControlView    self = (Lui.LControlView)checkSelf(l);
         UnityEngine.Vector2 v;
         checkType(l, 2, out v);
         self.centerPoint = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #7
0
 static public int set_joyStick(IntPtr l)
 {
     try {
         Lui.LControlView       self = (Lui.LControlView)checkSelf(l);
         UnityEngine.GameObject v;
         checkType(l, 2, out v);
         self.joyStick = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #8
0
ファイル: Lua_Lui_LControlView.cs プロジェクト: gowinder/uLui
 static public int OnPointerDown(IntPtr l)
 {
     try {
         Lui.LControlView self = (Lui.LControlView)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));
     }
 }