public void DeselectTarget() { if (CurrentTarget != null) { CurrentTarget.Deselect(); Publish(new TargetSelected(null)); } }
private void OnMouseUp(MouseUp e) { if (UntargetOnMouseup && e.Button == PointerEventData.InputButton.Left) { if (CurrentTarget != null && !CurrentTarget.IsHovered) { CurrentTarget.Deselect(); } } }