QDManagerInit.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. default:
  12. UniEvent.SendMessage(new LauncherEvent.InitPlatformResult() { success = true});
  13. break;
  14. }
  15. }
  16. public static void UpdateApp()
  17. {
  18. switch(LauncherConfig.ChannelId)
  19. {
  20. default:
  21. if (string.IsNullOrEmpty(LauncherConfig.updateAppPrompt))
  22. {
  23. LauncherConfig.updateAppPrompt = "需要安装新的安装包,请联系研发获取。";
  24. }
  25. Alert.Show(LauncherConfig.updateAppPrompt)
  26. .SetLeftButton(true, "知道了", (data) =>
  27. {
  28. Application.Quit();
  29. });
  30. break;
  31. }
  32. }
  33. }
  34. }