static int CloseSound(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject <LuaFramework.SoundManager>(L, 1); obj.CloseSound(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CloseSound(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.CloseSound(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }