ResumeInteraction() public method

Resumes the paused interaction of an effector.
public ResumeInteraction ( FullBodyBipedEffector effectorType ) : bool
effectorType FullBodyBipedEffector
return bool
示例#1
0
			// 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);
     }
 }