Ejemplo n.º 1
0
    void Start()
    {
        Cities.Add(new AICity());
        Cities.Add(new AICity());
        Cities.Add(new AICity());
        Cities.Add(new AICity());
        Cities.Add(new AICity());

        currentCity = Cities[0];
        UpdatePrices();

        StartCoroutine(CitiesLoop());
    }
Ejemplo n.º 2
0
 public void changeCity(int index)
 {
     currentCity = Cities[index];
     UpdatePrices();
 }