Пример #1
0
    public void ConfirmSelection()
    {
        Debug.Log(ItemSelection.Instance.BoolArray[characterSel.I]);

        if (ItemSelection.Instance.BoolArray[characterSel.I] == false && Points.points >= characterSel.Price) //Si no se ha comprado y tenemos más puntos que el precio
        {
            ItemSelection.Instance.SetCharacterBought(characterSel.I);
            Debug.Log(ItemSelection.Instance.BoolArray[characterSel.I]);

            characterSel.SavePlayerPrefs();
            TakePoints();
        }
    }