Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VAUnity
Commits
e0bbe6bc
Commit
e0bbe6bc
authored
Jan 18, 2017
by
Maurice Tayeb Andreas
Browse files
Skritp to update the ReverbOvlerlay
parent
1e52c01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
VAUVRTKReverbTimeText.cs
0 → 100644
View file @
e0bbe6bc
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"
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment