Ejemplo n.º 1
0
        public void SpawnConsumables()
        {
            factory = FactoryProducer.GetFactory(FactoryType.Consumable);

            potion = factory.GetConsumableFactory(ConsumableType.Potion);
            food   = factory.GetConsumableFactory(ConsumableType.Food);

            potion.Consume();
            food.Consume();
        }
Ejemplo n.º 2
0
        public void SpawnUsables()
        {
            factory = FactoryProducer.GetFactory(FactoryType.Usable);

            sword  = factory.GetUsableFactory(UsableType.Sword);
            shield = factory.GetUsableFactory(UsableType.Shield);

            sword.Use();
            shield.Use();
        }