Hello,
I tried the code from your thread,
voidAddCurrency()
{
AddUserVirtualCurrencyRequest request =newAddUserVirtualCurrencyRequest();
request.VirtualCurrency="CU";//put your virtual currency code here
request.Amount=100;//put the amount in here
PlayFabClientAPI.AddUserVirtualCurrency(request,_OnAddCurrencyResult,_OnPlayFabError);
}
void_OnAddCurrencyResult(ModifyUserVirtualCurrencyResult _thisResult)
{
//Do all your successful handling in here
Debug.Log("User has a current balance of: "+ _thisResult.Balance+" ("+ _thisResult.VirtualCurrency+") after this change: "+ _thisResult.BalanceChange);
}
void_OnPlayFabError(PlayFabError _thisErrorResult)
{
//Do all your error handling in here.
Debug.LogWarning("Got an error: "+ _thisErrorResult.ErrorMessage);
}
which is not working for me....
the onaddcurrencyresult is never called