static int UpdateBgVolume(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager)); obj.UpdateBgVolume(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }