Beispiel #1
0
    public void UpdateSelectButton()
    {
        NewItem currItem = mgr.features[mgr.currFeature].ReturnItem();

        if (currItem.GetOwned())
        {
            cost.text = "Already Owned";
            if (mgr.features[mgr.currFeature].currIndex == PlayerPrefs.GetInt("FEATURE_" + mgr.features.IndexOf(mgr.features[mgr.currFeature])))
            {
                SetSelectButtons(selectButtons[0]);
            }
            else
            {
                SetSelectButtons(selectButtons[1]);
            }
        }
        else
        {
            if (PlayerPrefs.GetInt("ORBS") < currItem.GetCost())
            {
                SetSelectButtons(selectButtons[2]);
            }
            else
            {
                SetSelectButtons(selectButtons[3]);
            }
        }
    }