docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerBalances

    Inheritance
    object
    PlayerBalances
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Economy
    Assembly: Unity.Services.Economy.dll
    Syntax
    [Obsolete("The interface provided by Economy.PlayerBalances has been replaced by EconomyService.Instance.PlayerBalances, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public class PlayerBalances

    Methods

    DecrementBalanceAsync(string, int, DecrementBalanceOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options) has been replaced by EconomyService.Instance.PlayerBalances.DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<PlayerBalance> DecrementBalanceAsync(string currencyId, int amount, PlayerBalances.DecrementBalanceOptions options = null)
    Parameters
    Type Name Description
    string currencyId
    int amount
    PlayerBalances.DecrementBalanceOptions options
    Returns
    Type Description
    Task<PlayerBalance>

    GetBalancesAsync(GetBalancesOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.GetBalancesAsync(GetBalancesOptions options) has been replaced by EconomyService.Instance.PlayerBalances.GetBalancesAsync(GetBalancesOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<GetBalancesResult> GetBalancesAsync(PlayerBalances.GetBalancesOptions options = null)
    Parameters
    Type Name Description
    PlayerBalances.GetBalancesOptions options
    Returns
    Type Description
    Task<GetBalancesResult>

    IncrementBalanceAsync(string, int, IncrementBalanceOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options) has been replaced by EconomyService.Instance.PlayerBalances.IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<PlayerBalance> IncrementBalanceAsync(string currencyId, int amount, PlayerBalances.IncrementBalanceOptions options = null)
    Parameters
    Type Name Description
    string currencyId
    int amount
    PlayerBalances.IncrementBalanceOptions options
    Returns
    Type Description
    Task<PlayerBalance>

    SetBalanceAsync(string, long, SetBalanceOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerBalances.SetBalanceAsync(string currencyId, long balance, SetBalanceOptions options) has been replaced by EconomyService.Instance.PlayerBalances.SetBalanceAsync(string currencyId, long balance, SetBalanceOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<PlayerBalance> SetBalanceAsync(string currencyId, long balance, PlayerBalances.SetBalanceOptions options = null)
    Parameters
    Type Name Description
    string currencyId
    long balance
    PlayerBalances.SetBalanceOptions options
    Returns
    Type Description
    Task<PlayerBalance>
    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)