Beispiel #1
0
 static int PlayMusic2D(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 7);
         string arg0 = ToLua.CheckString(L, 1);
         int    arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
         float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
         bool   arg3 = LuaDLL.luaL_checkboolean(L, 4);
         float  arg4 = (float)LuaDLL.luaL_checknumber(L, 5);
         float  arg5 = (float)LuaDLL.luaL_checknumber(L, 6);
         string arg6 = ToLua.CheckString(L, 7);
         AudioPlayManager.PlayMusic2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 private static void PlayMusicData(MusicPlayData data)
 {
     AudioPlayManager.PlayMusic2D(data.name, data.channel, data.volume, data.isLoop, data.fadeTime, data.delay);
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     AudioPlayManager.PlayMusic2D("boss2", 1, 1f);
 }
Beispiel #4
0
 private static void PlayMusicData(MusicPlayData data, string flag = "")
 {
     AudioPlayManager.PlayMusic2D(data.name, data.channel, data.volume, data.isLoop, data.fadeTime, data.delay, flag: flag);
 }