Пример #1
0
 public void BuildFromMap(GroundMap map)
 {
     foreach (GroundBlockMap blockMap in map)
     {
         GroundBlock newBlock = GameObjectsFactory.getInstance().Create <GroundBlock>();
         newBlock.BuildFromMap(blockMap);
         AddBlock(newBlock);
     }
 }
Пример #2
0
 public void AddBlock(GroundBlock block)
 {
     blocksList.Add(block);
     block.transform.parent = transform;
 }