示例#1
0
 public static void SetNetAccConfig(bool open)
 {
     if (open)
     {
         NetworkAccelerator.Start();
     }
     else
     {
         NetworkAccelerator.Stop();
     }
     PlayerPrefs.SetInt(NetworkAccelerator.PLAYER_PREF_NET_ACC, (!open) ? 0 : 1);
     PlayerPrefs.Save();
 }
    public static void SetNetAccConfig(bool open)
    {
        if (open)
        {
            NetworkAccelerator.Start();
        }
        else
        {
            NetworkAccelerator.Stop();
        }
        PlayerPrefs.SetInt(NetworkAccelerator.PLAYER_PREF_NET_ACC, open ? 1 : 0);
        PlayerPrefs.Save();
        MonoSingleton <GSDKsys> .GetInstance().StartGSDKSpeed(!open);

        NetworkAccelerator.PrintLog("SetNetAccConfig " + open);
    }