public override void PlaySimpleAudio(EAudioUniqueId uniqueId, bool sync = false) { if (sync) { AudioDefaultEvent defaultEvent = EventInfos.Instance.Allocate(EEventType.ADefault, false) as AudioDefaultEvent; defaultEvent.Initialize(uniqueId, FireMuzzleObject.position, FireMuzzleObject.eulerAngles); entity.localEvents.Events.AddEvent(defaultEvent); } }
public void PlaySimpleAudio(EAudioUniqueId uniqueId, bool sync = false) { GameAudioMedia.PlayEventAudio((int)uniqueId, EmitterObject); if (sync) { AudioDefaultEvent defaultEvent = EventInfos.Instance.Allocate(EEventType.ADefault, false) as AudioDefaultEvent; defaultEvent.Initialize(uniqueId, WeaponObject.transform.position, WeaponObject.transform.eulerAngles); entity.localEvents.Events.AddEvent(defaultEvent); } }