Beispiel #1
0
    public void ValidatePurchase()
    {
        var clothes = button.Clothes;

        _userDataManager.Coins = clothes.price * -1;
        _userDataManager.AddPurchasedClothes(clothes.clotheName);
        CloseConfirmattionPanel();
        button.AlreadyPurchased = true;
        button.transform.GetChild(1).gameObject.SetActive(false);
    }