namespace GFGGame { public class QDManager { public static void Init() { } 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() { switch (LauncherConfig.ChannelId) { default: 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; } } } }