Aufgrund eines Versionsupdates wird GitLab am 17.12. zwischen 9:00 und 9:30 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to a version upgrade, GitLab won't be accessible at 17.12. between 9 and 9:30 a.m.

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

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