Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        player = GameObject.Find("Player");
        test   = GetComponent <Hv_piepTone_AudioLib>();

        posX = Mathf.Abs(transform.position.x / 15 + .6f);
        test.SetFloatParameter(Hv_piepTone_AudioLib.Parameter.Toneone, posX);

        //test.SetFloatParameter(Hv_heavy_AudioLib.Parameter.Metro, 200);
        //test.SetFloatParameter(Hv_heavy_AudioLib.Parameter.Tonone, 68);
        // test.SetFloatParameter(Hv_heavy_AudioLib.Parameter.Tontwo, 0);
        //test.SetFloatParameter(Hv_heavy_AudioLib.Parameter.Soundbar, 0.1f);

        Debug.Log(zPosToAudio);
        foreach (Hv_piepTone_AudioLib.Parameter para in Enum.GetValues(typeof(Hv_piepTone_AudioLib.Parameter)))
        {
            Debug.Log(para);
        }
    }
Esempio n. 2
0
 private void OnEnable()
 {
     _dsp = target as Hv_piepTone_AudioLib;
 }