Пример #1
0
        private void ChangeFootstepType(Collider other)
        {
            Footstep footstep = other.gameObject.GetComponent <Footstep>();

            if (footstep)
            {
                currentFootStepType = footstep.GetFootstepType();
            }
        }
Пример #2
0
        private void OnTriggerExit(Collider other)
        {
            Footstep footstep = other.gameObject.GetComponent <Footstep>();

            if (footstep)
            {
                currentFootStepType = FootstepType.defaultFootstep;
            }
        }