示例#1
0
    public ClimbState(GameObject player, ClimbingNode node) : base(player)
    {
        MovementSpeed = 2f;

        IK.GlobalWeight = 1;
        IK.SetInitialIKPositions(node.rightHand, node.leftHand, node.rightFoot, node.leftFoot);

        currentNode  = node;
        currentRight = node;
        currentLeft  = node;

        anim.SetBool("climbing", true);
        UpdateAnimator();

        rb.velocity = Vector3.zero;
    }