Browse Source

汉字解码修改

DGJ 1 year ago
parent
commit
9170278904

+ 8 - 1
Assets/Scripts/MultiPlayer/MultiPlayerManager.cs

@@ -1,4 +1,5 @@
 using LitJson;
+using Newtonsoft.Json;
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
@@ -32,6 +33,9 @@ public class MultiPlayerManager : MonoSingleton<MultiPlayerManager>
     {
         dicSpoitValue = new Dictionary<string, SyncSpoit>();
         dicPlayer = new Dictionary<string, SynchronizationObject>();
+
+        //string test = "\u6587\u65C5\u5C55\u793A\u6F14\u793A";
+        //Debug.Log("DGJ ====> "+ JsonConvert.DeserializeObject<string>("\"" + test + "\""));
     }
 
     public void ReceivedCamPos(string uid, JsonData data)
@@ -64,7 +68,10 @@ public class MultiPlayerManager : MonoSingleton<MultiPlayerManager>
 
     public void ReceivedActiveSp(JsonData data)
     {
-        dicSpoitValue[data["spid"].ToString()].spoitObj.SetActive(bool.Parse(data["isOpen"].ToString()));
+
+        string spid = JsonConvert.DeserializeObject<string>("\"" + data["spid"].ToString() + "\"");
+        Debug.Log("DGJ ====>   " + spid);
+        dicSpoitValue[spid].spoitObj.SetActive(bool.Parse(data["isOpen"].ToString()));
     }
 
     public void ReceivedActiveVideo(JsonData data)

+ 3 - 3
ProjectSettings/ProjectSettings.asset

@@ -924,6 +924,7 @@ PlayerSettings:
   metroSplashScreenUseBackgroundColor: 1
   platformCapabilities:
     WindowsStoreApps:
+      EnterpriseAuthentication: False
       OfflineMapsManagement: False
       HumanInterfaceDevice: False
       Location: False
@@ -935,7 +936,6 @@ PlayerSettings:
       PrivateNetworkClientServer: False
       InternetClientServer: False
       VideosLibrary: False
-      BackgroundMediaPlayback: False
       Objects3D: False
       RemoteSystem: False
       BlockedChatMessages: False
@@ -957,10 +957,10 @@ PlayerSettings:
       PointOfService: False
       RecordedCallsFolder: False
       Contacts: False
-      InternetClient: True
       Proximity: False
+      InternetClient: True
       CodeGeneration: False
-      EnterpriseAuthentication: False
+      BackgroundMediaPlayback: False
   metroTargetDeviceFamilies:
     Desktop: False
     Holographic: False