using ET; using UnityEngine; namespace GFGGame { public class QDManager { public static void Init() { switch(LauncherConfig.ChannelId) { default: break; } } public static void Login() { ViewManager.Show("登录中..."); switch (LauncherConfig.ChannelId) { default: bool login = GameController.CheckLoginCache(true); if (!login) { ViewManager.Hide(); ViewManager.Show(); } break; } } public static void OnCreateRole() { switch (LauncherConfig.ChannelId) { default: break; } } public static void OnEnterGame() { switch (LauncherConfig.ChannelId) { default: break; } } //回到登录界面,不退出账号 public static void OnQuitToLoginView() { switch (LauncherConfig.ChannelId) { default: break; } } public static void Pay(int buyID, int count, string orderID, long Price) { switch (LauncherConfig.ChannelId) { default: break; } } public static void Logout(bool fromSdkLogoutCallback) { GameGlobal.zoneScene.GetComponent()?.Disconnect(); GameGlobal.zoneScene.GetComponent()?.ServerInfoList?.Clear(); GameGlobal.zoneScene.GetComponent()?.Clear(); if (PlayerPrefs.HasKey(GameConst.PASSWORD_LAST_LOGIN_KEY)) { PlayerPrefs.DeleteKey(GameConst.PASSWORD_LAST_LOGIN_KEY); } switch (LauncherConfig.ChannelId) { default: ViewManager.Show(); break; } } public static void Exit() { switch (LauncherConfig.ChannelId) { case (int)ChannelID.Test: GameController.ShowExitAlert(); break; default: break; } } public static bool IsTaptap { get { return LauncherConfig.ChannelId == (int)ChannelID.TapTap; } } public static bool IsHYKB { get { return LauncherConfig.ChannelId == (int)ChannelID.HYKB; } } public static bool IsBiliBili { get { return LauncherConfig.ChannelId == (int)ChannelID.BiliBili; } } public static bool IsHuaWei { get { return LauncherConfig.ChannelId == (int)ChannelID.HUAWEI; } } } }