修改细节
This commit is contained in:
1 parent
b9db3325a8
commit
6ab3ee19f2
9 files changed
+411
-210
No files matched your search
@@ -64,11 +64,7 @@ public class DownloadWorkoutsController : PFUIPanel
|
||||
UIManager.AddEvent(Btn.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, (b) =>
|
||||
{
|
||||
//Application.Quit();
|
||||
UIManager.ShowConfirm("Confirm", "Switch to PowerFun Workouts?\nWe will close the Powerfun and start PowerFun Workouts.", () =>
|
||||
{
|
||||
Utils.ExecFile(path);
|
||||
Application.Quit();
|
||||
});
|
||||
OpenFile(path);
|
||||
});
|
||||
UIManager.AddEvent(BtnStart.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick,async (_base) =>
|
||||
{
|
||||
@@ -152,12 +148,7 @@ public class DownloadWorkoutsController : PFUIPanel
|
||||
if (version == PlayerPrefs.GetString("exeVersion_w"))
|
||||
{
|
||||
//Application.Quit();
|
||||
UIManager.ShowConfirm("Confirm", "Switch to PowerFun Workouts?\nWe will close the Powerfun and start PowerFun Workouts.", () =>
|
||||
{
|
||||
Utils.ExecFile(desFileName);
|
||||
Application.Quit();
|
||||
});
|
||||
|
||||
OpenFile(desFileName);
|
||||
yield break;
|
||||
}
|
||||
else
|
||||
@@ -249,6 +240,14 @@ public class DownloadWorkoutsController : PFUIPanel
|
||||
return false;
|
||||
}
|
||||
}
|
||||
void OpenFile(string p)
|
||||
{
|
||||
UIManager.ShowConfirm("Confirm", "Switch to PowerFun Workouts?\nWe will close the Powerfun and start PowerFun Workouts.", () =>
|
||||
{
|
||||
Utils.ExecFile(p);
|
||||
Application.Quit();
|
||||
});
|
||||
}
|
||||
void SetType(int a)
|
||||
{
|
||||
switch (a)
|
||||
|
||||
Reference in new issue
Block a user