void Show(AUpgrade target) { selected = target; displayImage.gameObject.SetActive(true); displayImage.sprite = target.GetComponent <SpriteRenderer>().sprite; ShowRadius(); ShowUpgrades(); }
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); }