private void Evolve()
 {
     if (!Character.Current.TryToEvolve())
     {
         InsufficientFundsPopup.Open(Character.ItemsToEvolve);
     }
 }
示例#2
0
        protected override void Purchase(PurchaseOfferCallback callback)
        {
            var success = Currency.TryToRemove(price, false);

            if (success)
            {
                CollectProduct(callback);
            }
            else
            {
                InsufficientFundsPopup.Open(Currency);
                callback?.Invoke(false);
            }
        }