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