Example #1
0
    void ftdunk()
    {
        ISoundMan soundMan = EntryPoint.Instance.SoundMan;

        if (soundMan != null && soundMan.CanPlayEffect)
        {
            int    footStepId = GetFootStepId();
            string sound      = EntryPoint.Instance.WwiseSoundConfigParams.GetdunkFootStepAudio(footStepId);

            if (!string.IsNullOrEmpty(sound))
            {
                soundMan.PlayFootStepAudio(sound, gameObject.transform.position);
            }
        }
    }
Example #2
0
    void ftHoofed()
    {
        //Debug.Log("FootOnGround,stepSoundOn!");
        ISoundMan soundMan = EntryPoint.Instance.SoundMan;

        if (soundMan != null && soundMan.CanPlayEffect)
        {
            int    footStepId = GetFootStepId();
            string sound      = EntryPoint.Instance.WwiseSoundConfigParams.GetHoofedFootStepAudio(footStepId);
            if (!string.IsNullOrEmpty(sound))
            {
                soundMan.PlayFootStepAudio(sound, gameObject.transform.position);
            }
        }
    }