public void Free() { Color fadedWhite = new Color(1, 1, 1, .2f); box.color = fadedWhite; label.color = fadedWhite; display.text = string.Empty; upgradeInstall = null; }
public void SetUpgrade(int upgradeIndex, UpgradeInstall upgradeInstall) { this.upgradeIndex = upgradeIndex; this.upgradeInstall = upgradeInstall; Color fullWhite = new Color(1, 1, 1, 1); box.color = fullWhite; label.color = fullWhite; display.text = upgradeInstall.name; StartCoroutine(Pump()); }