// Stop touching the walls private void StopTouch(InteractionSystem interactionSystem) { interactionObject.transform.parent = interactionSystem.transform; nextSwitchTime = Time.time + minSwitchTime / interactionSystem.speed; if (interactionSystem.IsPaused(effectorType)) interactionSystem.ResumeInteraction(effectorType); else { speedF = 0f; targetPosition = hit.point; targetRotation = Quaternion.LookRotation(-hit.normal); } }
protected override void Action(InteractionSystem sys) { foreach (FullBodyBipedEffector effectorType in effectorTypes) { sys.ResumeInteraction(effectorType); } }