|
@@ -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>();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
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)
|