示例#1
0
    void OnClickLogout()
    {
        GameDataMgr.Instance.ResponseLogin   = null;
        GameDataMgr.Instance.ResponseCarType = null;
        PlayerPrefs.DeleteKey(GameDataMgr.AccountKey);
        PlayerPrefs.DeleteKey(GameDataMgr.PassWrdKey);
        UILoginWindow uILoginWindow = UIManager.Instance.OpenUI <UILoginWindow>();

        uILoginWindow.SetLoginList();
    }
示例#2
0
 void CheckLoginState()
 {
     if (/* 是否已经登录过 */ false)
     {
         //看是否更新数据进行网络交互
         UIManager.Instance.OpenUI <UIMainWindow>();
     }
     else
     {
         uiLoginWindow.SetLoginList();
     }
 }
示例#3
0
    void CheckLoginState()
    {
//#if CHAPTER_ONE
//        if (GameDataMgr.Instance.ResponseLogin != null)
//        {
//            //看是否更新数据进行网络交互
//            UIManager.Instance.OpenUI<UIMainWindow>();
//        }
//        else
//        {
//            uiLoginWindow.SetLoginList();
//        }
//#elif CHAPTER_TWO
        uiLoginWindow.SetLoginList();
//#endif
    }