GetSpatializerFloat() private method

private GetSpatializerFloat ( int index, float &value ) : bool
index int
value float
return bool
示例#1
0
    void updateSpatializerFloat()
    {
#if UNITY_5_3_OR_NEWER
        theAudioSource.GetSpatializerFloat(0, out _BaseLeft);
        theAudioSource.GetSpatializerFloat(1, out _BaseRight);
        //aSliderLeft.value = (_BaseLeft) * 10;
#endif
        //aSliderRight.value = _BaseRight;
    }
示例#2
0
 static public int GetSpatializerFloat(IntPtr l)
 {
     try {
         UnityEngine.AudioSource self = (UnityEngine.AudioSource)checkSelf(l);
         System.Int32            a1;
         checkType(l, 2, out a1);
         System.Single a2;
         var           ret = self.GetSpatializerFloat(a1, out a2);
         pushValue(l, ret);
         pushValue(l, a2);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetSpatializerFloat(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.GetSpatializerFloat(arg0, out arg1);
         LuaDLL.lua_pushboolean(L, o);
         LuaDLL.lua_pushnumber(L, arg1);
         return(2);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }