Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }