public virtual List <ArdenAudioClip> GetFootstep(MaterialSound external, Vector3 position)
        {
            if (external == null || material == null)
            {
                return(null);
            }

            MaterialSound.MaterialInteraction matint = material.GetInteraction(external);

            return(matint.sounds);
        }
Beispiel #2
0
        public override List <ArdenAudioClip> GetFootstep(MaterialSound material, Vector3 position)
        {
            if (terrain == null)
            {
                terrain = GetComponent <Terrain>();
            }

            int index = GetMainTexture(position);

            MaterialSound.MaterialInteraction matint = soundList.materialSounds[index].GetInteraction(material);

            return(matint.sounds);
        }