فهرست منبع

该Entity已经包含组件判断。。

xyh1985 1 سال پیش
والد
کامیت
9c338c35a4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Unity/Assets/Scripts/Codes/Hotfix/Client/Login/LoginHelper.cs

+ 1 - 1
Unity/Assets/Scripts/Codes/Hotfix/Client/Login/LoginHelper.cs

@@ -48,7 +48,7 @@ namespace ET.Client
                     Log.Error($"登陆game错误...errCode={g2CLoginGame.Error}");
                     return;
                 }
-                if (ConstValue.SessionTimeoutTime > 0)
+                if (ConstValue.SessionTimeoutTime > 0 && gameSession.GetComponent<SessionIdleCheckerComponent>() == null)
                 {
                     gameSession.AddComponent<SessionIdleCheckerComponent>();
                 }