QDAppStoreManagerInit.cs 819 B

12345678910111213141516171819202122232425262728
  1. using UnityEngine;
  2. using UniFramework.Event;
  3. namespace GFGGame.Launcher
  4. {
  5. public static class QDAppStoreManagerInit
  6. {
  7. public static void InitPlatform()
  8. {
  9. AppTrackingTransparency.RequestTrackingAuthorization();
  10. UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
  11. }
  12. public static void UpdateApp()
  13. {
  14. if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
  15. {
  16. LauncherConfig.updateAppPrompt = "需要安装新的安装包。";
  17. }
  18. Alert.Show(LauncherConfig.updateAppPrompt)
  19. .SetLeftButton(true, "前往更新", (data) =>
  20. {
  21. Application.OpenURL("");
  22. });
  23. }
  24. }
  25. }