Example #1
0
 static int GetMusicManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         MyFrameWork.MusicManager o = MyFrameWork.LuaHelper.GetMusicManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
 static int CanPlaySoundEffect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         MyFrameWork.MusicManager obj = (MyFrameWork.MusicManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.MusicManager));
         bool o = obj.CanPlaySoundEffect();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
 static int PlaySoundEff(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         MyFrameWork.MusicManager obj = (MyFrameWork.MusicManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.MusicManager));
         string arg0 = ToLua.CheckString(L, 2);
         obj.PlaySoundEff(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #4
0
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         MyFrameWork.MusicManager obj  = (MyFrameWork.MusicManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.MusicManager));
         UnityEngine.AudioClip    arg0 = (UnityEngine.AudioClip)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.AudioClip));
         UnityEngine.Vector3      arg1 = ToLua.ToVector3(L, 3);
         obj.Play(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #5
0
 static int PlayBacksound(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         MyFrameWork.MusicManager obj = (MyFrameWork.MusicManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.MusicManager));
         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));
     }
 }
Example #6
0
 static int LoadAudioClip(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         MyFrameWork.MusicManager obj = (MyFrameWork.MusicManager)ToLua.CheckObject(L, 1, typeof(MyFrameWork.MusicManager));
         string arg0             = ToLua.CheckString(L, 2);
         UnityEngine.AudioClip o = obj.LoadAudioClip(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }