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

SoundSource mute on Disable

parent 665fb052
......@@ -75,6 +75,7 @@ public class VAUAdapter : MonoBehaviour {
_VA = new VANet();
Init();
DeactivateUnitySound();
_VA.AddSearchPath;
}
void OnEnable()
......
......@@ -120,10 +120,15 @@ public class VAUSoundSource : MonoBehaviour {
_VA.SetSoundSourceAuralizationMode(SoundSource, AuraMode);
}
public void OnActivation()
{
ismuted = false;
}
public void OnDisable()
{
if (GetComponent<VAUAuralizationMode>() != null)
GetComponent<VAUAuralizationMode>().AuraStringChanged -= OnSoundSourceAuralizationModeChanged;
ismuted = true;
}
void OnDestroy()
......
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