public static int GetDrawedCount(IntPtr l) { int result; try { RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l); RafflePool pool; LuaObject.checkType <RafflePool>(l, 2, out pool); int drawedCount = raffleComponentCommon.GetDrawedCount(pool); LuaObject.pushValue(l, true); LuaObject.pushValue(l, drawedCount); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }