private void OnEnable() { #if !UNITY_EDITOR try { #endif var controllerBase = UIManager.Instance.GetController(UIConfig.ServerListUI); if (controllerBase == null) { return; } DataModel = controllerBase.GetDataModel("") as ServerListDataModel; Binding.SetBindDataSource(DataModel); Binding.SetBindDataSource(PlayerDataManager.Instance.AccountDataModel); propChangeHandler = OnPropertyChangeAnnounce; DataModel.PropertyChanged += propChangeHandler; LoginWindow.InvisibleLoginFrame(); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); UIManager.Instance.ShowMessage(MessageBoxType.Ok, ex.ToString()); } #endif }
public void CleanUp() { mServerListDataModel = new ServerListDataModel(); serverCacheDictionary = new Dictionary <int, ServerInfoData>(); }
public void CleanUp() { mServerListDataModel = new ServerListDataModel(); }