public void LoadCities3() { allStateCities[2].Cities.startingItemList = ParseManager.GetCities(allStateCities[2].States.selectedTextMesh.text, false); allStateCities[2].Cities.ItemList = allStateCities[2].Cities.startingItemList; allStateCities[2].Cities.UpdateList(); linkMan.SetDispatchStateCity(); linkMan.SetPickUpStateCity(); linkMan.SetDropOffStateCity(); }
public void SetStates(List <string> allStates) { for (int i = 0; i < allStateCities.Count; i++) { allStateCities[i].States.startingItemList = allStates; allStateCities[i].States.ItemList = allStates; allStateCities[i].States.UpdateList(); allStateCities[i].Cities.startingItemList = ParseManager.GetCities(allStateCities[i].States.selectedTextMesh.text, false); allStateCities[i].Cities.ItemList = allStateCities[i].Cities.startingItemList; allStateCities[i].Cities.UpdateList(); } }