상속: PlayFab.SharedModels.PlayFabResultCommon
예제 #1
0
 private void Callback_ChangeUserVirtualCurrencySuccess(PlayFab.ClientModels.ModifyUserVirtualCurrencyResult result)
 {
     Database.Instance.userCurrency[result.VirtualCurrency] = result.Balance;
 }
    /// <summary>
    /// Callback called when successfully gives the player a certain amount of in-game currency.
    /// </summary>
    /// <param name="result">Transaction result.</param>
    void OnAddedInGameCurrency(ModifyUserVirtualCurrencyResult result)
    {
        actualCurrency += result.Balance;

        GameplayUI.instance.UpdateCurrencyText(actualCurrency);
    }