コード例 #1
0
 static int set_Sound(IntPtr L)
 {
     try
     {
         Arthas.SoundCompoent arg0 = (Arthas.SoundCompoent)ToLua.CheckObject <Arthas.SoundCompoent>(L, 2);
         Arthas.GameEntry.Sound = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
 static int AddEffectAudio(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Arthas.SoundCompoent    obj = (Arthas.SoundCompoent)ToLua.CheckObject <Arthas.SoundCompoent>(L, 1);
         UnityEngine.AudioSource o   = obj.AddEffectAudio();
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
    static int set_Audio(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Arthas.SoundCompoent    obj  = (Arthas.SoundCompoent)o;
            UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource));
            obj.Audio = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Audio on a nil value"));
        }
    }
コード例 #4
0
    static int get_AudioListener(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Arthas.SoundCompoent      obj = (Arthas.SoundCompoent)o;
            UnityEngine.AudioListener ret = obj.AudioListener;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index AudioListener on a nil value"));
        }
    }