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