I'm calling SubtractUserVirtualCurrency with what I think are the correct type of parameteres, but I get a playfab error that says "Invalid input parameters".
Here is the code:
public void ChangeTreasure()
{
if (GlobalMethods.IsInternetReachable() &&v PlayFabClientAPI.IsClientLoggedIn())
{
SubtractUserVirtualCurrencyRequest request = new SubtractUserVirtualCurrencyRequest();
request.Amount = (int)regenerateTreasure;
request.VirtualCurrency = "GM";
PlayFabClientAPI.SubtractUserVirtualCurrency(request, OnSubstractedVirtualCurrency, OnSubstractionFailed);
}
}
PS: I have the Allow Client to Subtract Virtual Currency option enabled