Ejemplo n.º 1
0
 private void AllowFlight(MoveableObject pFlyingObject)
 {
     DistanceJoint2D existingDistanceJoint = mBalloon.Physics.DistanceJoint2D;
     existingDistanceJoint.enabled = false;
     DistanceJoint2D objectDistanceJoint = pFlyingObject.GetDistanceJoint ();
     objectDistanceJoint.connectedBody = mBalloon.Physics.GetRigidBody();
     objectDistanceJoint.enabled = true;
     pFlyingObject.SetIsFlying (true);
 }