9 static private SimpleSoundComponent m_SoundComponent;
18 static AudioHandle SoundEvent(
string eventName,
bool force =
false)
23 return AudioHandle.Invalid;
25 m_SoundComponent = SimpleSoundComponent.Cast(m_Instance.FindComponent(SimpleSoundComponent));
27 return AudioHandle.Invalid;
37 static void SetSignalValueStr(
string signal,
float value)
44 m_SoundComponent = SimpleSoundComponent.Cast(m_Instance.FindComponent(SimpleSoundComponent));
53 override void EOnInit(IEntity owner)
55 m_SoundComponent = SimpleSoundComponent.Cast(FindComponent(SimpleSoundComponent));
58 GetGame().OnUserSettingsChangedInvoker().Insert(SCR_CommunicationSoundComponent.SetSubtitiles);
59 SCR_CommunicationSoundComponent.SetSubtitiles();
65 SetEventMask(EntityEvent.INIT);
73 GetGame().OnUserSettingsChangedInvoker().Remove(SCR_CommunicationSoundComponent.SetSubtitiles);