コード例 #1
0
ファイル: PurchaseHandler.cs プロジェクト: MCV-Univalle/Rivit
    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);
    }