This commit is contained in:
YangHua 2023-11-22 18:41:51 +08:00
parent 3ac7c43f30
commit c2631e5374
2 changed files with 4 additions and 2 deletions

View File

@ -146,7 +146,7 @@ public class Taskpanel : MonoBehaviour
{ {
string _msg = "leaveroom "; string _msg = "leaveroom ";
_ = AdamSync.SyncCreateRoom.SendMessageAsync(_msg); _ = AdamSync.SyncCreateRoom.SendMessageAsync(_msg);
//SceneManager.LoadScene("SampleScene");
} }
} }

View File

@ -4,6 +4,7 @@ using PData;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement;
public class UIBootstrap : MonoSingleton<UIBootstrap> public class UIBootstrap : MonoSingleton<UIBootstrap>
{ {
@ -90,11 +91,12 @@ public class UIBootstrap : MonoSingleton<UIBootstrap>
string[] data = msg.Split(','); string[] data = msg.Split(',');
Debug.Log(data[1]); Debug.Log(data[1]);
_ = AdamSync.SyncCreateRoom.SendMessageAsync($"send2world {GlobalFlag.currentUser.user_id}"); _ = AdamSync.SyncCreateRoom.SendMessageAsync($"send2world {GlobalFlag.currentUser.user_id}");
SceneManager.LoadScene("SampleScene");
} }
private void OnDisable() private void OnDisable()
{ {
Debug.Log("OnDisable"); Debug.Log("OnDisable");