登录1111
This commit is contained in:
parent
5789e19331
commit
a0faf39488
@ -904,6 +904,7 @@ string HandleButtoncallId=11;//
|
||||
}
|
||||
if (userJoinResponse.MessageType == 11)//房间开始
|
||||
{
|
||||
GameObject.Find("HostCanvas").GetComponent<Starthost>().isSatisfy = true;
|
||||
test111.instance.Oppanel();
|
||||
}
|
||||
if (userJoinResponse.MessageType == 12)//玩家准备
|
||||
@ -912,7 +913,6 @@ string HandleButtoncallId=11;//
|
||||
{
|
||||
Debug.Log("服务器给准备好消息");
|
||||
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()
|
||||
{
|
||||
if(!isReady)
|
||||
{
|
||||
start.interactable = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
start.interactable = true;
|
||||
}
|
||||
//if(!isReady)
|
||||
//{
|
||||
// start.interactable = false;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// start.interactable = true;
|
||||
//}
|
||||
if (isTimerRunning)
|
||||
{
|
||||
timer += Time.deltaTime;
|
||||
|
Loading…
Reference in New Issue
Block a user