Esempio n. 1
0
        public override void PlayJumpStepAudio()
        {
            AudioJumpstepEvent audioEvent =
                (AudioJumpstepEvent)EventInfos.Instance.Allocate(EEventType.AJumpstep, false);

            audioEvent.Initialize(GetFootMatType(), new Vector3(PlayerObject.transform.position.x,
                                                                0, PlayerObject.transform.position.z), PlayerObject.transform.eulerAngles);
            entity.localEvents.Events.AddEvent(audioEvent);
        }
Esempio n. 2
0
        public static void PlayJumpstepAudio(AudioJumpstepEvent audioEvent)
        {
            if (IsUnavailable())
            {
                return;
            }
            var emitter = GetEmitter(audioEvent);

            PlayJumpstepAudio(audioEvent.FootMatType, emitter);
        }
Esempio n. 3
0
        public static void PlayJumpstepAudio(AudioJumpstepEvent audioEvent)
        {
            if (SharedConfig.IsServer || AudioEntry.Dispatcher == null)
            {
                return;
            }
            var emitter = GetEmitter(audioEvent);

            PlayJumpstepAudio(audioEvent.FootMatType, emitter);
        }
Esempio n. 4
0
        public void PlayJumpStepAudio()
        {
            var footMatType = FootMatType;

            GameAudioMedia.PlayJumpstepAudio(footMatType, EmitterObject);
            AudioJumpstepEvent audioEvent =
                (AudioJumpstepEvent)EventInfos.Instance.Allocate(EEventType.AJumpstep, false);

            audioEvent.Initialize(FootMatType,
                                  new Vector3(PlayerObject.transform.position.x, 0, PlayerObject.transform.position.z),
                                  PlayerObject.transform.eulerAngles);
            entity.localEvents.Events.AddEvent(audioEvent);
        }