|
@@ -1,4 +1,7 @@
|
|
|
-namespace GFGGame
|
|
|
+using ET;
|
|
|
+using UnityEngine;
|
|
|
+
|
|
|
+namespace GFGGame
|
|
|
{
|
|
|
|
|
|
public class QDManager
|
|
@@ -70,12 +73,19 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static void Logout()
|
|
|
+ public static void Logout(bool fromSdkLogoutCallback)
|
|
|
{
|
|
|
+ GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Disconnect();
|
|
|
+ GameGlobal.zoneScene.GetComponent<ServerInfosComponent>()?.ServerInfoList?.Clear();
|
|
|
+ GameGlobal.zoneScene.GetComponent<AccountInfoComponent>()?.Clear();
|
|
|
+ if (PlayerPrefs.HasKey(GameConst.PASSWORD_LAST_LOGIN_KEY))
|
|
|
+ {
|
|
|
+ PlayerPrefs.DeleteKey(GameConst.PASSWORD_LAST_LOGIN_KEY);
|
|
|
+ }
|
|
|
switch (LauncherConfig.ChannelId)
|
|
|
{
|
|
|
default:
|
|
|
-
|
|
|
+ ViewManager.Show<LoginInputView>();
|
|
|
break;
|
|
|
}
|
|
|
}
|