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