Beispiel #1
0
        void Sell()
        {
            var order = new JRPGOrder(PlayerItems.DataSource);

            if (Shop.CanBuy(order))
            {
                Shop.Buy(order);
                Player.Sell(order);
            }
            else
            {
                var message = string.Format("Not enough money in shop to sell items. Available: {0}; Required: {1}", Shop.Money, order.Total());
                Notify.Template("NotifyTemplateSimple").Show(message, customHideDelay: 3f, sequenceType: NotifySequence.First, clearSequence: true);
            }
        }
Beispiel #2
0
        void Buy()
        {
            var order = new JRPGOrder(ShopItems.DataSource);

            if (Player.CanBuy(order))
            {
                Shop.Sell(order);
                Player.Buy(order);
            }
            else
            {
                var message = string.Format("Not enough money to buy items. Available: {0}; Required: {1}", Player.Money, order.Total());
                notify.Template().Show(message, customHideDelay: 3f, sequenceType: NotifySequence.First, clearSequence: true);
            }
        }
Beispiel #3
0
        public void UpdateShopTotal()
        {
            var order = new JRPGOrder(ShopItems.DataSource);

            ShopTotal.text = order.Total().ToString();
        }
Beispiel #4
0
        public void UpdatePlayerTotal()
        {
            var order = new JRPGOrder(PlayerItems.DataSource);

            PlayerTotal.text = order.Total().ToString();
        }
		public void UpdatePlayerTotal()
		{
			var order = new JRPGOrder(PlayerItems.DataSource);
			PlayerTotal.text = order.Total().ToString();
		}
		public void UpdateShopTotal()
		{
			var order = new JRPGOrder(ShopItems.DataSource);
			ShopTotal.text = order.Total().ToString();
		}
		void Sell()
		{
			var order = new JRPGOrder(PlayerItems.DataSource);

			if (Shop.CanBuy(order))
			{
				Shop.Buy(order);
				Player.Sell(order);
			}
			else
			{
				var message = string.Format("Not enough money in shop to sell items. Available: {0}; Required: {1}", Shop.Money, order.Total());
				Notify.Template("NotifyTemplateSimple").Show(message, customHideDelay: 3f, sequenceType: NotifySequence.First, clearSequence: true);
			}
		}