|
@@ -8,12 +8,21 @@ namespace GFGGame.Launcher
|
|
|
{
|
|
|
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("");
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|