static int GetFloatList(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); MsgUnPacker obj = (MsgUnPacker)LuaScriptMgr.GetNetObjectSelf(L, 1, "MsgUnPacker"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); List <float> o = obj.GetFloatList(arg0); LuaScriptMgr.PushObject(L, o); return(1); }