Exemplo n.º 1
0
 static int playSound(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         LuaFramework.SoundManager obj  = (LuaFramework.SoundManager)ToLua.CheckObject <LuaFramework.SoundManager>(L, 1);
         UnityEngine.AudioSource   arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource));
         string      arg1 = ToLua.CheckString(L, 3);
         bool        arg2 = LuaDLL.luaL_checkboolean(L, 4);
         LuaFunction arg3 = ToLua.CheckLuaFunction(L, 5);
         System.Collections.IEnumerator o = obj.playSound(arg0, arg1, arg2, arg3);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }