Esempio n. 1
0
 private void DeselectLeft(ISelectable selectables)
 {
     if (selectables != null)
     {
         selectables.DeSelect();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Outside method to force a gameobject to be unselected. Returns wheter it successeded or not
 /// </summary>
 public bool DeSelect(ISelectable toUnselect)
 {
     if (previousSelected != null && toUnselect == previousSelected.GetComponent <ISelectable>())
     {
         toUnselect.DeSelect();
         previousSelected = null;
         return(true);
     }
     return(false);
 }
 private void flipSelectionState(ISelectable item)
 {
     if (item.IsSelected)
     {
         item.DeSelect();
     }
     else
     {
         item.Select();
     }
 }
 private void deSelectItem(ISelectable item)
 {
     if (item == null) throw new ArgumentNullException("item");
     if (item.IsSelected)
     {
         item.DeSelect();
     }
 }