コード例 #1
0
ファイル: ItemFactory.cs プロジェクト: satirikasha/MatchThree
 // 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>>();
 }
コード例 #2
0
 private void PrepareFactory()
 {
     ItemFactory.Instantiate();
     Board.ItemTypes.ForEach(_ => ItemFactory.Current.AddItems(_, 50));
 }