void setUnActive(CannonUpgradeTile tile) { tile.lockedIcon.SetActive(true); tile.imageIcon.color = new Color(1, 1, 1, 0.63f); tile.unlocked = false; tile.upgraded = false; }
void setActive(CannonUpgradeTile tile) { tile.imageIcon.color = new Color(1, 1, 1, 1); tile.unlocked = true; tile.upgraded = true; tile.lockedIcon.SetActive(false); }