1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using UnityEngine;
- using UniFramework.Event;
- namespace GFGGame.Launcher
- {
- public class QDManagerInit
- {
- public static void InitPlatform()
- {
- switch (LauncherConfig.ChannelId)
- {
- default:
- UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
- break;
- }
- }
- public static void UpdateApp()
- {
- switch(LauncherConfig.ChannelId)
- {
- default:
- if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
- {
- LauncherConfig.updateAppPrompt = "需要安装新的安装包,请联系研发获取。";
- }
- Alert.Show(LauncherConfig.updateAppPrompt)
- .SetLeftButton(true, "知道了", (data) =>
- {
- Application.Quit();
- });
- break;
- }
- }
- }
- }
|