修改创建房间得逻辑
This commit is contained in:
parent
d246865339
commit
2864332f41
|
@ -482,9 +482,9 @@ public class View_Panel2 : XUIPanel
|
|||
{
|
||||
GameMain.model = false;
|
||||
//加入房间
|
||||
//string RoomName = "joinroom " + currentRoomName;
|
||||
//Debug.Log(currentRoomName);
|
||||
//_ = AdamSync.SyncCreateRoom.SendMessageAsync(RoomName);
|
||||
string RoomName = "joinroom " + currentRoomName;
|
||||
Debug.Log(currentRoomName);
|
||||
_ = AdamSync.SyncCreateRoom.SendMessageAsync(RoomName);
|
||||
//SceneManager.LoadScene("Training_pilot_terminal_panl");
|
||||
//SceneManager.LoadScene("AdamTraining_pilot_terminal_panl 1");
|
||||
|
||||
|
@ -538,6 +538,7 @@ public class View_Panel2 : XUIPanel
|
|||
{
|
||||
Storm_and_capture_panl.gameObject.SetActive(true);
|
||||
currentRoomData = await AsyncWebReq.Get<RSData.RoomSubjectData>("http://111.229.30.246:48888/Handler/Practice.ashx?action=querypracticesubject&PracticeId=" + roomItem.name);
|
||||
currentRoomName = roomItem.name;
|
||||
Debug.Log(" roomItem.nameID==" + roomItem.name);
|
||||
CreateSubjectItem(currentRoomData.data);
|
||||
});
|
||||
|
@ -742,7 +743,7 @@ public class View_Panel2 : XUIPanel
|
|||
{
|
||||
CreateRoomBase(returnRoomId.data, currentRoomName);
|
||||
//创建房间
|
||||
string RoomName = "createroom " + currentRoomName;
|
||||
string RoomName = "createroom " + returnRoomId.data;
|
||||
_ = AdamSync.SyncCreateRoom.SendMessageAsync(RoomName);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -151,7 +151,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isLinkAgain: 0
|
||||
serverIP: 127.0.0.1
|
||||
serverIP: 172.16.1.232
|
||||
port: 12345
|
||||
--- !u!4 &2132962759
|
||||
Transform:
|
||||
|
|
Loading…
Reference in New Issue