Example #1
0
 public void StartClimbUp(Ladder ladder)
 {
     SharedInitiation(ladder);
     JointPlacing = new JointPlacingHelper(1, 0, 2, 0, 2,
                                           new GameObject("Right Hand Goal").transform,
                                           new GameObject("Right Foot Goal").transform,
                                           new GameObject("Body Goal").transform,
                                           new GameObject("Left Hand Goal").transform,
                                           new GameObject("left Foot Goal").transform, 1);
     StartCoroutine(Grab());
 }
Example #2
0
    public void StartClimbDown(Ladder ladder)
    {
        SharedInitiation(ladder);
        int ladderHighestIndex = ladder.Rungs.Count - 1;

        JointPlacing = new JointPlacingHelper(ladderHighestIndex - 1, ladderHighestIndex - 2, ladderHighestIndex,
                                              ladderHighestIndex - 2, ladderHighestIndex - 2,
                                              new GameObject("Right Hand Goal").transform,
                                              new GameObject("Right Foot Goal").transform,
                                              new GameObject("Body Goal").transform,
                                              new GameObject("Left Hand Goal").transform,
                                              new GameObject("left Foot Goal").transform, 1);
        StartCoroutine(Grab());
    }