public void SetLoginRes(CSUserLoginRes res) { loginRes = res; if (IsLoginSuccess) { RefreshSubscribers((int)UpdateType.LoginRes); } else { GUIManager.Instance.OpenTipsView(loginRes.Result); } }
private void ProcessLoginRes() { CSUserLoginRes res = userInfoDataStore.LoginRes; if (res.LoginSuccess && res.HasPlayer) { DoPlayerLogin(); } else { isCreatePlayerMode = true; FlushView(); } if (res.LoginSuccess) { SaveLocalAccountAndPassword(); } }
private void OnCSUserLoginRes(string jsonStr) { CSUserLoginRes res = JsonMapper.ToObject <CSUserLoginRes>(jsonStr); userInfoDataStore.SetLoginRes(res); }