Exemplo n.º 1
0
 private void InitializeRoom()
 {
     if (id < 0)
     {
         id = GvrAudio.CreateAudioRoom();
         GvrAudio.UpdateAudioRoom(id, transform, GetSurfaceMaterials(), reflectivity, reverbGainDb,
                                  reverbBrightness, reverbTime, size);
     }
 }
Exemplo n.º 2
0
 void OnEnable()
 {
     GvrAudio.UpdateAudioRoom(this, GvrAudio.IsListenerInsideRoom(this));
 }
Exemplo n.º 3
0
 void OnDisable()
 {
     GvrAudio.UpdateAudioRoom(this, false);
 }
Exemplo n.º 4
0
 void Update()
 {
     GvrAudio.UpdateAudioRoom(id, transform, GetSurfaceMaterials(), reflectivity, reverbGainDb,
                              reverbBrightness, reverbTime, size);
 }