QDManagerInit.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using UnityEngine;
  2. using UniFramework.Event;
  3. namespace GFGGame.Launcher
  4. {
  5. public class QDManagerInit
  6. {
  7. public static void InitPlatform()
  8. {
  9. switch (LauncherConfig.ChannelId)
  10. {
  11. case (int)ChannelID.AppStore:
  12. QDAppStoreManagerInit.InitPlatform();
  13. break;
  14. default:
  15. UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
  16. break;
  17. }
  18. }
  19. public static void UpdateApp()
  20. {
  21. switch(LauncherConfig.ChannelId)
  22. {
  23. default:
  24. if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
  25. {
  26. LauncherConfig.updateAppPrompt = "需要安装新的安装包,请联系研发获取。";
  27. }
  28. Alert.Show(LauncherConfig.updateAppPrompt)
  29. .SetLeftButton(true, "知道了", (data) =>
  30. {
  31. Application.Quit();
  32. });
  33. break;
  34. }
  35. }
  36. }
  37. }