Beispiel #1
0
 void SelectNew(Selectable selectable)
 {
     if (selected != null)
     {
         selected.Deselect();
     }
     selected = selectable;
     selectable.Select();
     selected.CreateInfo();
     if (selected.ownerID == GameManager.instance.localPlayer.playerID)
     {
         selected.CreateAbilites();
     }
     else
     {
         GameManager.instance.ui.ClearAbilities();
     }
 }