Ejemplo n.º 1
0
 private void PickUpObject(FPDragHandler dh)
 {
     if (dh.enabled)
     {
         carrying = dh;
         carrying.StartDrag();
         carrying.SetTarget(carrying.transform.position);
     }
 }
Ejemplo n.º 2
0
 private void MouseUp()
 {
     // Leave the object wherever it was
     if (carrying != null)
     {
         carrying.StopDrag();
         carrying = null;
     }
     if (backButton != null)
     {
         backButton.Unclick();
     }
 }