public void Invoke()
 {
     for (int i = 0; i < numItemsToDrop; i++)
     {
         ItemTemplate chosenTemplate = itemClass.FetchItem();
         if (chosenTemplate != null)
         {
             Item item = itemFactory.Build(chosenTemplate);
             ground.TryPlaceItemOnGround(item, transform.position);
         }
     }
 }
Beispiel #2
0
 public Item Build(IItemFactory itemFactory)
 {
     return itemFactory.Build(Code, TargetQuantity);
 }