修改删除user逻辑
This commit is contained in:
parent
bd50389482
commit
bbf470f621
|
@ -149,8 +149,8 @@ public class Taskpanel : MonoBehaviour
|
||||||
{
|
{
|
||||||
Debug.Log("OnGetLeaveRoomsInfo====" + msg);
|
Debug.Log("OnGetLeaveRoomsInfo====" + msg);
|
||||||
string[] info = msg.Split(',');
|
string[] info = msg.Split(',');
|
||||||
GameManager.Instance.RemovePlayer(ulong.Parse(info[0]));
|
string _msg = $"send2room offline,{info[3]}";
|
||||||
SceneManager.LoadScene("SampleScene");
|
_ = SyncCreateRoom.SendMessageAsync(_msg);
|
||||||
}
|
}
|
||||||
public void OnLeaveRoom()
|
public void OnLeaveRoom()
|
||||||
{
|
{
|
||||||
|
|
|
@ -202,7 +202,8 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "offline":
|
case "offline":
|
||||||
|
RemovePlayer(ulong.Parse(data[3]));
|
||||||
|
SceneManager.LoadScene("SampleScene");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -210,9 +211,6 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void SpawnDevice(GameObject devicePrefab, string[] data = null, string deviceID = null)
|
public void SpawnDevice(GameObject devicePrefab, string[] data = null, string deviceID = null)
|
||||||
{
|
{
|
||||||
GameObject obj = Instantiate(devicePrefab);
|
GameObject obj = Instantiate(devicePrefab);
|
||||||
|
|
Loading…
Reference in New Issue