GetTouchPosition() public method

public GetTouchPosition ( int touchId ) : Vector2
touchId int
return Vector2
Esempio n. 1
0
 static public int GetTouchPosition(IntPtr l)
 {
     try {
         FairyGUI.Stage self = (FairyGUI.Stage)checkSelf(l);
         System.Int32   a1;
         checkType(l, 2, out a1);
         var ret = self.GetTouchPosition(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
 static int GetTouchPosition(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.Stage      obj  = (FairyGUI.Stage)ToLua.CheckObject <FairyGUI.Stage>(L, 1);
         int                 arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.Vector2 o    = obj.GetTouchPosition(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }