Exemple #1
0
 private void Spawn(PersonType personType, SpecialBuildingType buildingType, int spawnAmt)
 {
     for (int i = 0; i < locs.Count; i++)
     {
         if (types[i] == buildingType)
         {
             for (int j = 0; j < spawnAmt; j++)
             {
                 Vector2 pos = CityManager.Instance.FindClosestPos(locs[i]);
                 PeopleManager.Instance.SpawnPerson(pos, personType, "Special" + i + j, CameraManager.Instance.col);
             }
         }
     }
 }
Exemple #2
0
 public void AddBuilding(int x, int y, SpecialBuildingType type)
 {
     locs.Add(new Vector2(x, y));
     types.Add(type);
 }