Compare commits

..

No commits in common. "7e4379fbcbf955a294a409e745b1da1d036f2aab" and "42db58b47d7ca1ff480bdba5645fc3110d4aecb5" have entirely different histories.

2 changed files with 10 additions and 10 deletions

View File

@ -904,7 +904,6 @@ string HandleButtoncallId=11;//
}
if (userJoinResponse.MessageType == 11)//房间开始
{
GameObject.Find("HostCanvas").GetComponent<Starthost>().isSatisfy = true;
test111.instance.Oppanel();
}
if (userJoinResponse.MessageType == 12)//玩家准备
@ -913,6 +912,7 @@ string HandleButtoncallId=11;//
{
Debug.Log("服务器给准备好消息");
GameObject.Find("HostCanvas").GetComponent<Starthost>().start.interactable = true;
GameObject.Find("HostCanvas").GetComponent<Starthost>().isSatisfy = true;
}
}

View File

@ -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;