private void ChangeFootstepType(Collider other) { Footstep footstep = other.gameObject.GetComponent <Footstep>(); if (footstep) { currentFootStepType = footstep.GetFootstepType(); } }
private void OnTriggerExit(Collider other) { Footstep footstep = other.gameObject.GetComponent <Footstep>(); if (footstep) { currentFootStepType = FootstepType.defaultFootstep; } }