{ Application.Quit(); }); }..._unity application.cancelquit()">
赞
踩
- bool isQuit = true;
- void OnApplicationQuit()
- {
- Debug.Log("退出监听!");
-
- if (isQuit)
- {
- Application.CancelQuit();//退出拦截
- MessageCtrl.Instance.OpenConfirmView("关闭界面将终止,确认关闭?", "", () =>
- {
- isQuit = false;
- Application.Quit();
- });
- }
-
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。