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); } } }
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); } } }