Ejemplo n.º 1
0
 public void Jump()
 {
     //newFixedJoint.connectedBody = null;
     _soundEmmiter.JumpSound();
     if (!holdingLastRope)
     {
         var hingeTwo = hinges[1];
         hingeTwo.connectedBody = null;
     }
     thisRigidBody.velocity         = holdingRigidBody.velocity * velocityMultiplier;
     holdingRigidBody               = thisRigidBody;
     _distanceJoint2D.connectedBody = actualBase.nodes[actualBase.nodesNumber - 1].GetComponent <Rigidbody2D>();
     isHoldingNumber  = 999;
     waitingToCollide = timeWaitToCollide;
     unchained        = false;
     actualBase.StartDestroy();
     _playerAnimations.ChangeToMortal();
     countMortal   = 0;
     doMortal      = true;
     zoomCameraOut = false;
     zoomCameraIn  = true;
 }