public static int SetNumber(IntPtr l) { int result; try { DamageNumber damageNumber = (DamageNumber)LuaObject.checkSelf(l); int number; LuaObject.checkType(l, 2, out number); damageNumber.SetNumber(number); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }