This commit is contained in:
huyulong 2025-01-03 10:07:03 +08:00
parent 8792d291ec
commit 3a22e2dcc2
2 changed files with 2 additions and 0 deletions

View File

@ -911,6 +911,7 @@ string HandleButtoncallId=11;//
if (userJoinResponse.IsAllReady)
{
Debug.Log("服务器给准备好消息");
GameObject.Find("HostCanvas").GetComponent<Starthost>().start.interactable = true;
GameObject.Find("HostCanvas").GetComponent<Starthost>().isSatisfy = true;
}

View File

@ -77,6 +77,7 @@ public class Starthost : MonoBehaviour
posiBtn = transform.Find("Panel1/right/under/btnRenYuanDaoWei").GetComponent<Button>();
start = transform.Find("Panel1/right/under/btnRenYanLianStart").GetComponent<Button>();
posiBtn.onClick.AddListener(OnClickPosiBtn);
start.interactable = false;
start.onClick.AddListener(OnClickStartBtn);
time = transform.Find("time").gameObject;