Compare commits
3 Commits
42db58b47d
...
7e4379fbcb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7e4379fbcb | ||
![]() |
c2423ac4a1 | ||
![]() |
a0faf39488 |
@ -904,6 +904,7 @@ string HandleButtoncallId=11;//
|
|||||||
}
|
}
|
||||||
if (userJoinResponse.MessageType == 11)//房间开始
|
if (userJoinResponse.MessageType == 11)//房间开始
|
||||||
{
|
{
|
||||||
|
GameObject.Find("HostCanvas").GetComponent<Starthost>().isSatisfy = true;
|
||||||
test111.instance.Oppanel();
|
test111.instance.Oppanel();
|
||||||
}
|
}
|
||||||
if (userJoinResponse.MessageType == 12)//玩家准备
|
if (userJoinResponse.MessageType == 12)//玩家准备
|
||||||
@ -912,7 +913,6 @@ string HandleButtoncallId=11;//
|
|||||||
{
|
{
|
||||||
Debug.Log("服务器给准备好消息");
|
Debug.Log("服务器给准备好消息");
|
||||||
GameObject.Find("HostCanvas").GetComponent<Starthost>().start.interactable = true;
|
GameObject.Find("HostCanvas").GetComponent<Starthost>().start.interactable = true;
|
||||||
GameObject.Find("HostCanvas").GetComponent<Starthost>().isSatisfy = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -125,14 +125,14 @@ public class Starthost : MonoBehaviour
|
|||||||
}
|
}
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if(!isReady)
|
//if(!isReady)
|
||||||
{
|
//{
|
||||||
start.interactable = false;
|
// start.interactable = false;
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
start.interactable = true;
|
// start.interactable = true;
|
||||||
}
|
//}
|
||||||
if (isTimerRunning)
|
if (isTimerRunning)
|
||||||
{
|
{
|
||||||
timer += Time.deltaTime;
|
timer += Time.deltaTime;
|
||||||
@ -198,7 +198,7 @@ public class Starthost : MonoBehaviour
|
|||||||
AnimateUIElementAsync();
|
AnimateUIElementAsync();
|
||||||
test.StartGameDrill(ReadRoom.instance.roomid);
|
test.StartGameDrill(ReadRoom.instance.roomid);
|
||||||
start.interactable = false; // 防止点击事件
|
start.interactable = false; // 防止点击事件
|
||||||
//总指挥接警动画
|
//总指挥接警动画
|
||||||
// 开始对讲机效果流程
|
// 开始对讲机效果流程
|
||||||
PlayDialogueSequenceAsync();
|
PlayDialogueSequenceAsync();
|
||||||
//视野开始旋转
|
//视野开始旋转
|
||||||
|
Loading…
Reference in New Issue
Block a user