private void OnZonesList(OperationResponse response) { //Debug.Log("OnZonesList "); object zoneList; if (response.Parameters.TryGetValue((byte)ParameterCode.ZoneList, out zoneList)) { //Debug.Log("zoneList"); GameManager.GameZones.Clear(); foreach (var item in zoneList as Dictionary <string, string> ) { GameZone gameZone = new GameZone() { ServerId = new Guid(item.Key) }; gameZone.InitData(item.Value); GameManager.GameZones.Add(gameZone); // Debug.Log(string.Format("{0} - {1}", item.Key, item.Value)); } _uiLoginManager.OnResponseZoneList(); } //GameManager.Status = GameStatus.ZoneSelect; }
private void OnZonesList(OperationResponse response) { object zoneList; if (response.Parameters.TryGetValue((byte)ParameterCode.ZoneList, out zoneList)) { GameManager.GameZones.Clear(); foreach (var item in zoneList as Dictionary <string, string> ) { GameZone gameZone = new GameZone() { ServerId = new Guid(item.Key) }; gameZone.InitData(item.Value); GameManager.GameZones.Add(gameZone); } _manager.OnResponseZoneList(); } }