Commit e0bbe6bc authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas
Browse files

Skritp to update the ReverbOvlerlay

parent 1e52c01f
using UnityEngine;
using System.Collections;
using VA;
using UnityEngine.UI;
using System;
public class VAUVRTKReverbTimeText : MonoBehaviour {
private VANet _VA = null;
private Text reverbTimeText;
private VAUListener listener;
void Start()
_VA = VAUAdapter.VA;
reverbTimeText = GetComponent<Text>();
listener = FindObjectOfType<VAUListener>();
listener.ReverbTimeChanged += Listener_ReverbTimeChanged;
reverbTimeText.text = 0f + "s";
private void Listener_ReverbTimeChanged(double reverbTime)
reverbTime = Math.Round(reverbTime, 3);
reverbTimeText.text = reverbTime + "s";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment