private void Evolve() { if (!Character.Current.TryToEvolve()) { InsufficientFundsPopup.Open(Character.ItemsToEvolve); } }
protected override void Purchase(PurchaseOfferCallback callback) { var success = Currency.TryToRemove(price, false); if (success) { CollectProduct(callback); } else { InsufficientFundsPopup.Open(Currency); callback?.Invoke(false); } }