private static void SetNetAccIPAndPort() { if ((!Singleton <FrameSynchr> .instance.m_NetAccSetIPAndPortInvoked && (ApolloConfig.echoPort != 0)) && !string.IsNullOrEmpty(ApolloConfig.loginOnlyIp)) { NetworkAccelerator.setRecommendationGameIP(ApolloConfig.loginOnlyIp, ApolloConfig.echoPort); Singleton <FrameSynchr> .instance.m_NetAccSetIPAndPortInvoked = true; } }
private static void SetNetAccIPAndPort() { if (Singleton <FrameSynchr> .get_instance().m_NetAccSetIPAndPortInvoked || ApolloConfig.echoPort == 0 || string.IsNullOrEmpty(ApolloConfig.loginOnlyIp)) { return; } NetworkAccelerator.setRecommendationGameIP(ApolloConfig.loginOnlyIp, (int)ApolloConfig.echoPort); Singleton <FrameSynchr> .get_instance().m_NetAccSetIPAndPortInvoked = true; }