예제 #1
0
 static int GetMusicManager(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 0);
     SimpleFramework.Manager.MusicManager o = SimpleFramework.LuaHelper.GetMusicManager();
     LuaScriptMgr.Push(L, o);
     return(1);
 }
 static int InitAudioSource(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     SimpleFramework.Manager.MusicManager obj = (SimpleFramework.Manager.MusicManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.MusicManager");
     obj.InitAudioSource();
     return(0);
 }
    static int CanPlaySoundEffect(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        SimpleFramework.Manager.MusicManager obj = (SimpleFramework.Manager.MusicManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.MusicManager");
        bool o = obj.CanPlaySoundEffect();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    static int Play(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimpleFramework.Manager.MusicManager obj = (SimpleFramework.Manager.MusicManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.MusicManager");
        AudioClip arg0 = (AudioClip)LuaScriptMgr.GetUnityObject(L, 2, typeof(AudioClip));
        Vector3   arg1 = LuaScriptMgr.GetVector3(L, 3);

        obj.Play(arg0, arg1);
        return(0);
    }
    static int PlayBacksound(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimpleFramework.Manager.MusicManager obj = (SimpleFramework.Manager.MusicManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.MusicManager");
        string arg0 = LuaScriptMgr.GetLuaString(L, 2);
        bool   arg1 = LuaScriptMgr.GetBoolean(L, 3);

        obj.PlayBacksound(arg0, arg1);
        return(0);
    }
    static int LoadAudioClip(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        SimpleFramework.Manager.MusicManager obj = (SimpleFramework.Manager.MusicManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.MusicManager");
        string    arg0 = LuaScriptMgr.GetLuaString(L, 2);
        AudioClip o    = obj.LoadAudioClip(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }