Exemplo n.º 1
0
 static public int GetAmbisonicDecoderFloat(IntPtr l)
 {
     try {
         UnityEngine.AudioSource self = (UnityEngine.AudioSource)checkSelf(l);
         System.Int32            a1;
         checkType(l, 2, out a1);
         System.Single a2;
         var           ret = self.GetAmbisonicDecoderFloat(a1, out a2);
         pushValue(l, ret);
         pushValue(l, a2);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetAmbisonicDecoderFloat(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject <UnityEngine.AudioSource>(L, 1);
         int   arg0 = (int)LuaDLL.luaL_checkinteger(L, 2);
         float arg1;
         bool  o = obj.GetAmbisonicDecoderFloat(arg0, out arg1);
         LuaDLL.lua_pushboolean(L, o);
         LuaDLL.lua_pushnumber(L, arg1);
         return(2);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }