|
@@ -63,7 +63,7 @@ namespace GameUI
|
|
|
|
|
|
|
|
private void OnApplicationFocus(bool hasFocus)
|
|
private void OnApplicationFocus(bool hasFocus)
|
|
|
{
|
|
{
|
|
|
- if (hasFocus && PlayerManager.Instance.isLogin)
|
|
|
|
|
|
|
+ if (!hasFocus && PlayerManager.Instance.isLogin)
|
|
|
{
|
|
{
|
|
|
// 退出时记录时间
|
|
// 退出时记录时间
|
|
|
AccountFileInfo.Instance.playerData.ExitTime = TimeHelper.ClientNow();
|
|
AccountFileInfo.Instance.playerData.ExitTime = TimeHelper.ClientNow();
|