Esempio n. 1
0
 public void Select(GameObject toSelect)
 {
     if (toSelect.GetComponent<ISelectable>() != null)
     {
         Deselect();
         CurrentSelected = toSelect;
         moveableSelection = CurrentSelected.GetComponent<IMoveable>();
         selection = CurrentSelected.GetComponent<ISelectable>();
         UIPortrait.sprite = selection.GetSelectionPortrait();
         UIPortraitText.text = selection.GetName();
     }
 }