Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.A))
     {
         buildings.AddBlueprint("House", house, houseGhost);
     }
     if (Input.GetKeyDown(KeyCode.B))
     {
         buildings.AddBlueprint("Big house", bigHouse, bigHouseGhost);
     }
     if (Input.GetKeyDown(KeyCode.C))
     {
         buildings.AddBlueprint("Factory", factory, factoryGhost);
     }
     if (Input.GetKeyDown(KeyCode.D))
     {
         buildings.AddBlueprint("Training center", trainingCenter, trainingCenterGhost);
     }
 }