// Use this for initialization
 public static void Instantiate()
 {
     var factory = new GameObject("ItemFactory", typeof(ItemFactory)).GetComponent<ItemFactory>();
       _Current = factory;
       factory.transform.parent = BoardController.Current.transform;
       factory.Items = new Dictionary<ItemType, Queue<Item>>();
 }
Exemple #2
0
 private void PrepareFactory()
 {
     ItemFactory.Instantiate();
     Board.ItemTypes.ForEach(_ => ItemFactory.Current.AddItems(_, 50));
 }