Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     for (int i = 0; i < m_cityData.itemGenerateInstructions.Count; i++)
     {
         CityData.ItemGenerateInstruction instruction = m_cityData.itemGenerateInstructions[i];
         Item item = SelfGenerate(instruction);
         instruction.item = item;
         m_cityData.AddItemInMap(instruction);
     }
 }