Ejemplo n.º 1
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("Multiple SelecterIcons in the scene.", this);
     }
     instance = this;
 }
Ejemplo n.º 2
0
 public void SelectThis(bool yes)
 {
     if (yes)
     {
         //BattleState.SelectUnit(this.gameObject);
         SelecterIcon.targetObject = this.gameObject;
         currentSelected           = this.gameObject;
         zoomed = true;
         //ui.DisplayInformation(gameObject);
     }
     else
     {
         SelecterIcon.targetObject = null;
         SelecterIcon.ResetPosition();
         zoomed          = false;
         currentSelected = null;
         //ui.ResetDisplay();
     }
 }