Exemplo n.º 1
0
 static int LoadAudioClip(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         GameResFactory          obj  = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory));
         UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.AudioSource));
         string      arg1             = ToLua.CheckString(L, 3);
         LuaFunction arg2             = ToLua.CheckLuaFunction(L, 4);
         obj.LoadAudioClip(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }