Exemplo n.º 1
0
 void Respond(ValidateGooglePlayPurchaseResult result, PlayFabError error)
 {
     if (OnResponse != null)
     {
         OnResponse(result, error);
     }
 }
Exemplo n.º 2
0
                void RetrieveCallback(ValidateGooglePlayPurchaseResult result)
                {
                    if (OnRetrieved != null)
                    {
                        OnRetrieved(result);
                    }

                    Respond(result, null);
                }
Exemplo n.º 3
0
        void GoogleValidateResponseCallback(ValidateGooglePlayPurchaseResult result, PlayFabError error)
        {
            Google.Validate.OnResponse -= GoogleValidateResponseCallback;

            if (error == null)
            {
                Debug.Log("Successfully Validated IAP Purchase");

                ValidateAction();
            }
            else
            {
                Debug.LogError("Error Validating IAP, report: " + error.GenerateErrorReport());

                ErrorCallback(error.ErrorMessage);
            }
        }
 private void OnSucces(ValidateGooglePlayPurchaseResult result)
 {
     Fsm.Event(successEvent);
 }
Exemplo n.º 5
0
 void OnValidateCompleted(ValidateGooglePlayPurchaseResult result)
 {
     Debug.Log("validate completed " + result.ToString());
     PlayFabClientAPI.GetUserInventory(new GetUserInventoryRequest(), OnUserInventoryLoaded, OnUserInventoryLoadError);
 }