static int PlayBacksound(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes <string, bool>(L, 2)) { LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject <LuaFramework.SoundManager>(L, 1); string arg0 = ToLua.ToString(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); obj.PlayBacksound(arg0, arg1); return(0); } else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.AudioClip, bool>(L, 2)) { LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject <LuaFramework.SoundManager>(L, 1); UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.ToObject(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); obj.PlayBacksound(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.SoundManager.PlayBacksound")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int PlayBacksound(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.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)); } }