void Update()
{
if (!Input.GetMouseButton (0) && DroppedObject == null && WatchingObject != null && WatchingObject.Dropped == null) {
var dist = Vector2.Distance (transform.position, WatchingObject.gameObject.transform.position);
if (dist < DistThreshold) {
WatchingObject.transform.position = transform.position;
WatchingObject.Dropped = this;
DroppedObject = WatchingObject;
WatchingObject = null;
EventMessenger.Dispatch (new UIDropEvent { DropTarget = this, DroppedObject = DroppedObject });
}
}
}