static int PlayBacksound(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); SoundManager obj = (SoundManager)ToLua.CheckObject(L, 1, typeof(SoundManager)); string arg0 = ToLua.CheckString(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.PlayBacksound(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int PlayBacksound(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 3); SoundManager soundManager = (SoundManager)ToLua.CheckObject(L, 1, typeof(SoundManager)); string name = ToLua.CheckString(L, 2); bool canPlay = LuaDLL.luaL_checkboolean(L, 3); soundManager.PlayBacksound(name, canPlay); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }