diff --git a/Assets/Temp/Scripts/Taskpanel.cs b/Assets/Temp/Scripts/Taskpanel.cs index 8e4f4615..9b0bbdd3 100644 --- a/Assets/Temp/Scripts/Taskpanel.cs +++ b/Assets/Temp/Scripts/Taskpanel.cs @@ -149,8 +149,8 @@ public class Taskpanel : MonoBehaviour { Debug.Log("OnGetLeaveRoomsInfo====" + msg); string[] info = msg.Split(','); - GameManager.Instance.RemovePlayer(ulong.Parse(info[0])); - SceneManager.LoadScene("SampleScene"); + string _msg = $"send2room offline,{info[3]}"; + _ = SyncCreateRoom.SendMessageAsync(_msg); } public void OnLeaveRoom() { diff --git a/Assets/Zion/Scripts/Adam/GameManager.cs b/Assets/Zion/Scripts/Adam/GameManager.cs index a8ca953a..d098caf1 100644 --- a/Assets/Zion/Scripts/Adam/GameManager.cs +++ b/Assets/Zion/Scripts/Adam/GameManager.cs @@ -202,7 +202,8 @@ public class GameManager : MonoSingleton } break; case "offline": - + RemovePlayer(ulong.Parse(data[3])); + SceneManager.LoadScene("SampleScene"); break; default: break; @@ -210,9 +211,6 @@ public class GameManager : MonoSingleton } } - - - public void SpawnDevice(GameObject devicePrefab, string[] data = null, string deviceID = null) { GameObject obj = Instantiate(devicePrefab);