修改细节

This commit is contained in:
Caiyanpeng committed 2021-07-28 18:41:40 +08:00
1 parent 952e5038ed
commit abf913b467
12 files changed
+198 -79

No files matched your search

@@ -41,15 +41,16 @@ public class DownloadWorkoutsController : PFUIPanel
UIManager.AddEvent(Exit.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, (b) =>
{
//UIManager.CloseConfirm();
if (request != null)
//UIManager.ShowConfirm("1", "2", () => { });
if (request != null)
{
request.Abort();
}
if (_fs != null)
if (_fs != null)
{
_fs.Close();
}
if (_netStream != null)
if (_netStream != null)
{
_netStream.Close();
}
@@ -62,7 +63,11 @@ public class DownloadWorkoutsController : PFUIPanel
UIManager.AddEvent(Btn.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, (b) =>
{
//Application.Quit();
Utils.ExecFile(path);
UIManager.ShowConfirm("Confirm", @"Switch to PowerFun Workouts? We will close the Powerfun and start PowerFun Workouts", () =>
{
Utils.ExecFile(path);
UIManager.CloseConfirm();
});
});
UIManager.AddEvent(BtnStart.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick,async (_base) =>
{