Example #1
0
        void Show(AUpgrade target)
        {
            selected = target;
            displayImage.gameObject.SetActive(true);
            displayImage.sprite = target.GetComponent <SpriteRenderer>().sprite;


            ShowRadius();
            ShowUpgrades();
        }
Example #2
0
 void Deselect()
 {
     rangeMarker.gameObject.SetActive(false);
     foreach (var item in upgradeButtons)
     {
         item.gameObject.SetActive(false);
     }
     displayImage.gameObject.SetActive(false);
     selected         = null;
     description.text = "";
     SellButton.gameObject.SetActive(false);
 }