|
@@ -42,7 +42,13 @@ namespace GHZLangChao
|
|
|
mAccountStr = "lisongnan";
|
|
|
|
|
|
mPasswordStr = "13579Wp!#%&(";
|
|
|
-
|
|
|
+
|
|
|
+ if (PlayerPrefs.HasKey("mAccountStr"))
|
|
|
+ {
|
|
|
+ mAccountStr = PlayerPrefs.GetString("mAccountStr");
|
|
|
+ mPasswordStr = PlayerPrefs.GetString("mPasswordStr");
|
|
|
+ }
|
|
|
+
|
|
|
#if UNITY_EDITOR
|
|
|
|
|
|
|
|
@@ -103,6 +109,9 @@ namespace GHZLangChao
|
|
|
StartCoroutine(PopUp());
|
|
|
else
|
|
|
{
|
|
|
+ PlayerPrefs.SetString("mAccountStr", mAccountStr);
|
|
|
+ PlayerPrefs.SetString("mPasswordStr", mPasswordStr);
|
|
|
+
|
|
|
ScenesManager.Instance.showWindow(ScenesManager.SceneType.ShowChoose);
|
|
|
MQTTManager.Instance.SetAccoutInfo(mAccountStr);
|
|
|
GameStart.Instance.StartCoroutine(HttpTool.Instance.SendHttp(HttpActionLang.userinfo, "", UserInfoCallBack));
|