示例#1
0
 static int ClampAngle(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);
         float o    = UnGfx.ClampAngle(arg0, arg1, arg2);
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }