示例#1
0
        public void FootstepFrame()
        {
            Vector3 pos = transform.position;

            m_CharacterAudio.Step(pos);
            VFXManager.PlayVFX(VFXType.StepPuff, pos);
        }
示例#2
0
        public void FootstepFrame()
        {
            Vector3 pos = transform.position;

            m_CharacterAudio.Step(pos);

            SFXManager.PlaySound(SFXManager.Use.Player, new SFXManager.PlayData()
            {
                Clip     = SpurSoundClips[Random.Range(0, SpurSoundClips.Length)],
                Position = pos,
                PitchMin = 0.8f,
                PitchMax = 1.2f,
                Volume   = 0.3f
            });

            VFXManager.PlayVFX(VFXType.StepPuff, pos);
        }