Ejemplo n.º 1
0
    public void Presenter(UpgradeCardItem currentupdgradecard)
    {
        _currentupgradecard   = currentupdgradecard;
        _donetoggle.isOn      = _currentupgradecard.done;
        _upgradecardname.text = _currentupgradecard.Nameofupgrade;

        _nameofcard.text = PlayerPrefs._playerPref._playerCards[_currentupgradecard.card].Name;
    }
Ejemplo n.º 2
0
    public void PayToUpgrade(UpgradeCardItem currentupgrade)
    {
        localcurrentupgrade = currentupgrade;
        pointsTogoal        = currentupgrade.scoreToLearn;
        points = currentupgrade.currentLearnScore;

        _nameText.text   = currentupgrade.GetComponent <UpgradeCardItem>().Nameofupgrade;
        _slider.maxValue = pointsTogoal;
        _slider.value    = points;
    }