12345678910111213141516171819202122232425262728 |
- using UnityEngine;
- using UniFramework.Event;
- namespace GFGGame.Launcher
- {
- public static class QDAppStoreManagerInit
- {
- public static void InitPlatform()
- {
- AppTrackingTransparency.RequestTrackingAuthorization();
- UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
- }
- public static void UpdateApp()
- {
- if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
- {
- LauncherConfig.updateAppPrompt = "需要安装新的安装包。";
- }
- Alert.Show(LauncherConfig.updateAppPrompt)
- .SetLeftButton(true, "前往更新", (data) =>
- {
- Application.OpenURL("");
- });
- }
- }
- }
|