玩家点击准备
This commit is contained in:
parent
339753e3f8
commit
0c7f8fa2ad
@ -60,6 +60,7 @@ public class test : MonoBehaviour
|
|||||||
public void JoinRoom(string roomid)
|
public void JoinRoom(string roomid)
|
||||||
{
|
{
|
||||||
JoinRoomRequest data = new JoinRoomRequest();
|
JoinRoomRequest data = new JoinRoomRequest();
|
||||||
|
|
||||||
data.RoomId = roomid;
|
data.RoomId = roomid;
|
||||||
WSMessage msg = new WSMessage();
|
WSMessage msg = new WSMessage();
|
||||||
msg.Module = "hall";
|
msg.Module = "hall";
|
||||||
|
@ -18,6 +18,7 @@ public class ReadRoom : MonoBehaviour
|
|||||||
private bool isStartRoom = false;//主持人是否已经点击演练开始
|
private bool isStartRoom = false;//主持人是否已经点击演练开始
|
||||||
public bool iszongzhihui = false;
|
public bool iszongzhihui = false;
|
||||||
public int RoleId;
|
public int RoleId;
|
||||||
|
public string roomid;
|
||||||
public loginData playerdetail;
|
public loginData playerdetail;
|
||||||
public test test;
|
public test test;
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
@ -184,6 +185,7 @@ public class ReadRoom : MonoBehaviour
|
|||||||
//Player.CSZS.SetPlayerID(room.PlayerList[i].RoleId);
|
//Player.CSZS.SetPlayerID(room.PlayerList[i].RoleId);
|
||||||
Debug.Log("可以直接进入房间");
|
Debug.Log("可以直接进入房间");
|
||||||
test.JoinRoom(room.RoomId);
|
test.JoinRoom(room.RoomId);
|
||||||
|
roomid = room.RoomId;
|
||||||
SceneManager.LoadScene("Tmap 1");
|
SceneManager.LoadScene("Tmap 1");
|
||||||
//if(GlobalData.ServerData.data.openId==)
|
//if(GlobalData.ServerData.data.openId==)
|
||||||
//.isenter = true;
|
//.isenter = true;
|
||||||
|
@ -40,6 +40,7 @@ public class Starthost : MonoBehaviour
|
|||||||
public bool ishost=false;
|
public bool ishost=false;
|
||||||
public Button ready;
|
public Button ready;
|
||||||
private Image image;
|
private Image image;
|
||||||
|
public test test;
|
||||||
|
|
||||||
//语音内容
|
//语音内容
|
||||||
public GameObject walkieTalkieIcon; // 对讲机图标(动态效果)
|
public GameObject walkieTalkieIcon; // 对讲机图标(动态效果)
|
||||||
@ -143,6 +144,7 @@ public class Starthost : MonoBehaviour
|
|||||||
{
|
{
|
||||||
image.gameObject.SetActive(true);
|
image.gameObject.SetActive(true);
|
||||||
ready.gameObject.SetActive(false);
|
ready.gameObject.SetActive(false);
|
||||||
|
test.JoinRoom(ReadRoom.instance.roomid);
|
||||||
}
|
}
|
||||||
// 停止计时并重置时间显示的方法
|
// 停止计时并重置时间显示的方法
|
||||||
public void StopTimer()
|
public void StopTimer()
|
||||||
|
@ -29,7 +29,7 @@ public class test111 : MonoBehaviour
|
|||||||
camera1.gameObject.SetActive(true);
|
camera1.gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
@ -6157,6 +6157,52 @@ MeshCollider:
|
|||||||
m_Convex: 0
|
m_Convex: 0
|
||||||
m_CookingOptions: 30
|
m_CookingOptions: 30
|
||||||
m_Mesh: {fileID: 3461206218701573744, guid: 0c9b084f2070bda45b87da961d2eb0f6, type: 3}
|
m_Mesh: {fileID: 3461206218701573744, guid: 0c9b084f2070bda45b87da961d2eb0f6, type: 3}
|
||||||
|
--- !u!1 &203750394
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 203750396}
|
||||||
|
- component: {fileID: 203750395}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: BurstCollisionWorld
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &203750395
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 203750394}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f1a161c4294214a4fbcb7e9e94800494, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
cellSpans:
|
||||||
|
m_AlignBytes: 16
|
||||||
|
--- !u!4 &203750396
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 203750394}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 43
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1001 &212712606
|
--- !u!1001 &212712606
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -10715,52 +10761,6 @@ MonoBehaviour:
|
|||||||
arrowDistanceText: {fileID: 1368271979}
|
arrowDistanceText: {fileID: 1368271979}
|
||||||
edgePadding: 50
|
edgePadding: 50
|
||||||
textOffset: {x: 0, y: -30}
|
textOffset: {x: 0, y: -30}
|
||||||
--- !u!1 &491785396
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 491785398}
|
|
||||||
- component: {fileID: 491785397}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: BurstCollisionWorld
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &491785397
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 491785396}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: f1a161c4294214a4fbcb7e9e94800494, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
cellSpans:
|
|
||||||
m_AlignBytes: 16
|
|
||||||
--- !u!4 &491785398
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 491785396}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 43
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &496425324
|
--- !u!1 &496425324
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -60663,6 +60663,7 @@ MonoBehaviour:
|
|||||||
panel1_22: {fileID: 5640692781825168938}
|
panel1_22: {fileID: 5640692781825168938}
|
||||||
ishost: 1
|
ishost: 1
|
||||||
ready: {fileID: 0}
|
ready: {fileID: 0}
|
||||||
|
test: {fileID: 1526740601}
|
||||||
walkieTalkieIcon: {fileID: 5640692782032870078}
|
walkieTalkieIcon: {fileID: 5640692782032870078}
|
||||||
dialogueText: {fileID: 5640692781696125076}
|
dialogueText: {fileID: 5640692781696125076}
|
||||||
staticNoiseClip: {fileID: 8300000, guid: 5912e270549bdb04c848923fd9751319, type: 3}
|
staticNoiseClip: {fileID: 8300000, guid: 5912e270549bdb04c848923fd9751319, type: 3}
|
||||||
@ -65027,6 +65028,7 @@ MonoBehaviour:
|
|||||||
panel1_22: {fileID: 0}
|
panel1_22: {fileID: 0}
|
||||||
ishost: 0
|
ishost: 0
|
||||||
ready: {fileID: 0}
|
ready: {fileID: 0}
|
||||||
|
test: {fileID: 0}
|
||||||
walkieTalkieIcon: {fileID: 0}
|
walkieTalkieIcon: {fileID: 0}
|
||||||
dialogueText: {fileID: 0}
|
dialogueText: {fileID: 0}
|
||||||
staticNoiseClip: {fileID: 0}
|
staticNoiseClip: {fileID: 0}
|
||||||
|
Loading…
Reference in New Issue
Block a user