public void SetLoginRes(CSUserLoginRes res)
 {
     loginRes = res;
     if (IsLoginSuccess)
     {
         RefreshSubscribers((int)UpdateType.LoginRes);
     }
     else
     {
         GUIManager.Instance.OpenTipsView(loginRes.Result);
     }
 }
Example #2
0
        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);
        }