public void DetermineWhichSpeed() { if (!NetworkAccelerator.IsCommercialized()) { if (NetworkAccelerator.Mode == NetworkAccelerator.XunYouMode.Disable) { NetworkAccelerator.SetNetAccConfig(false); } else if (!NetworkAccelerator.Inited) { NetworkAccelerator.SetNetAccConfig(false); } else if (NetworkAccelerator.IsAutoNetAccConfigOpen() || NetworkAccelerator.IsNetAccConfigOpen()) { NetworkAccelerator.SetNetAccConfig(true); } else { NetworkAccelerator.SetNetAccConfig(false); } } else if (!NetworkAccelerator.isAccelOpened()) { this.StartGSDKSpeed(true); } }