/// <summary> /// Initialises the climbing process, readying the harness for travelling up and down the /// given rope. /// </summary> public void setupHarness(bool isClimbing, List <GameObject> ropeNodes, GameObject hitNode, RopeSwing currentRope) { player.setPlayerState(PlayerState.SWINGING); //init harness variables lastRope = currentRope; climbing = isClimbing; climbPositions = ropeNodes; speed = player.getClimbSpeed(); //init node traversal currentStartPoint = climbPositions.IndexOf(hitNode); startNode = hitNode.transform; transform.position = startNode.position; progress = 0; initCurrentNodeTarget(); }
public void setLastRope(RopeSwing rope) { lastRope = rope; }
public void setRopeRef(RopeSwing rope) { myRopeRef = rope; }