private bool onPurchaseComplete(DisneyStoreServiceEvents.DisneyStorePurchaseComplete evt)
 {
     Service.Get <EventDispatcher>().RemoveListener <DisneyStoreServiceEvents.DisneyStorePurchaseComplete>(onPurchaseComplete);
     if (evt.Result == DisneyStoreServiceEvents.DisneyStorePurchaseResult.Success)
     {
         PlayerPrefs.SetInt("DisneyStoreShowTutorial", 0);
         setState(ConfirmationState.Complete);
         if (DisneyStoreUtils.DoesItemContainEquipmentInstance(item))
         {
             GetLatestInventoryCMD getLatestInventoryCMD = new GetLatestInventoryCMD(onGetInventoryComplete);
             getLatestInventoryCMD.Execute();
         }
         else
         {
             Service.Get <EventDispatcher>().DispatchEvent(new DisneyStoreEvents.PurchaseComplete(item.Definition.Reward.ToReward()));
             hidePurchaseModal();
         }
     }
     else if (evt.Result == DisneyStoreServiceEvents.DisneyStorePurchaseResult.Error)
     {
         Service.Get <PromptManager>().ShowPrompt("DisneyStorePurchaseErrorPrompt", null);
         hidePurchaseModal();
     }
     return(false);
 }
        private void getLatestInventory()
        {
            GetLatestInventoryCMD getLatestInventoryCMD = new GetLatestInventoryCMD();

            getLatestInventoryCMD.Execute();
        }