|
@@ -58,10 +58,12 @@ namespace ET.Client
|
|
|
long channelId = NetServices.Instance.CreateConnectChannelId();
|
|
|
Session session = self.AddChildWithId<Session, int>(channelId, self.ServiceId);
|
|
|
session.RemoteAddress = realIPEndPoint;
|
|
|
+#if !UNITY
|
|
|
if (self.DomainScene().SceneType != SceneType.Benchmark)
|
|
|
{
|
|
|
session.AddComponent<SessionIdleCheckerComponent>();
|
|
|
}
|
|
|
+#endif
|
|
|
NetServices.Instance.CreateChannel(self.ServiceId, session.Id, realIPEndPoint);
|
|
|
|
|
|
return session;
|
|
@@ -72,10 +74,12 @@ namespace ET.Client
|
|
|
long channelId = localConn;
|
|
|
Session session = self.AddChildWithId<Session, int>(channelId, self.ServiceId);
|
|
|
session.RemoteAddress = realIPEndPoint;
|
|
|
+#if !UNITY
|
|
|
if (self.DomainScene().SceneType != SceneType.Benchmark)
|
|
|
{
|
|
|
session.AddComponent<SessionIdleCheckerComponent>();
|
|
|
}
|
|
|
+#endif
|
|
|
NetServices.Instance.CreateChannel(self.ServiceId, session.Id, routerIPEndPoint);
|
|
|
|
|
|
return session;
|