// Use this for initialization void Start() { // Maybe should move this to another method for initialization cities = GameObject.FindGameObjectsWithTag("City"); // Add every role in roleGame so we can choose from them when initializing a player foreach (Role role in PandemicEnum.Role.GetValues(typeof(Role))) { RoleScript newRole = new RoleScript(); newRole.setRole(role); gameRole.Add(newRole); } // Add every cityCard in player deck playerDeck = new Deck(); for (int i = 0; i < cities.Length; i++) { PlayerCityCardScript cityCard = new PlayerCityCardScript(); int population = cities[i].GetComponent <CityScript>().getPopulation(); cityCard.init(cities[i], population); playerDeck.insert(cityCard); } foreach (PhotonPlayer player in PhotonNetwork.otherPlayers) //fill in player list { playersInGame.Add(player.NickName); } roomname = PhotonNetwork.room.Name; //get room name //setupBaseGame (); }