Beispiel #1
0
    public void Free()
    {
        Color fadedWhite = new Color(1, 1, 1, .2f);

        box.color      = fadedWhite;
        label.color    = fadedWhite;
        display.text   = string.Empty;
        upgradeInstall = null;
    }
Beispiel #2
0
    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());
    }