docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WalletManager

    Manages the player currency balances.

    Inheritance
    object
    WalletManager
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public static class WalletManager

    Properties

    Name Description
    IsInitialized

    Tells whether the wallet manager is initialized or not.

    Methods

    Name Description
    AddBalance(string, long)

    Increases the balance of the specified Currency.

    AddBalance(Currency, long)

    Increases the balance of the specified Currency.

    GetBalance(string)

    Gets the balance of the specified Currency.

    GetBalance(Currency)

    Gets the balance of the specified Currency.

    RemoveBalance(string, long)

    Decreases the balance of the specified Currency.

    RemoveBalance(Currency, long)

    Decreases the balance of the specified Currency.

    SetBalance(string, long)

    Sets the balance of the specified Currency.

    SetBalance(Currency, long)

    Sets the balance of the specified Currency.

    Events

    Name Description
    balanceChanged

    Triggered every time a balance is modified, whether added, removed, or set.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)