コード例 #1
0
 static int QPYX_ConvertVector3_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         float QPYX_arg0_YXQP            = (float)LuaDLL.luaL_checknumber(L_YXQP, 1);
         float QPYX_arg1_YXQP            = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
         float QPYX_arg2_YXQP            = (float)LuaDLL.luaL_checknumber(L_YXQP, 3);
         UnityEngine.Vector3 QPYX_o_YXQP = CustomerUtil.ConvertVector3(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
         ToLua.Push(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #2
0
 static int ConvertVector3(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         float arg0            = (float)LuaDLL.luaL_checknumber(L, 1);
         float arg1            = (float)LuaDLL.luaL_checknumber(L, 2);
         float arg2            = (float)LuaDLL.luaL_checknumber(L, 3);
         UnityEngine.Vector3 o = CustomerUtil.ConvertVector3(arg0, arg1, arg2);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }