|
@@ -51,7 +51,10 @@ namespace GFGGame
|
|
|
{
|
|
|
if(doLogin)
|
|
|
{
|
|
|
- LoginController.LoginTest(account).Coroutine();
|
|
|
+ if(PlayerPrefs.HasKey(GameConst.PASSWORD_LAST_LOGIN_KEY))
|
|
|
+ {
|
|
|
+ LoginController.LoginTest(account).Coroutine();
|
|
|
+ }
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -141,7 +144,7 @@ namespace GFGGame
|
|
|
StudioDataManager.Instance.Clear();
|
|
|
StorageDataManager.Instance.Clear();
|
|
|
RechargeDataManager.Instance.Clear();
|
|
|
- GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Session?.Dispose();
|
|
|
+ GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Disconnect();
|
|
|
GameGlobal.zoneScene.GetComponent<ServerInfosComponent>()?.ServerInfoList?.Clear();
|
|
|
if (logout)
|
|
|
{
|