This commit is contained in:
杨号敬 2025-01-03 10:44:41 +08:00
commit 42db58b47d
3 changed files with 4 additions and 2 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

@ -76,8 +76,9 @@ public class Starthost : MonoBehaviour
panel = transform.Find("Panel1").gameObject;
posiBtn = transform.Find("Panel1/right/under/btnRenYuanDaoWei").GetComponent<Button>();
start = transform.Find("Panel1/right/under/btnRenYanLianStart").GetComponent<Button>();
posiBtn.onClick.AddListener(OnClickPosiBtn);
posiBtn.onClick.AddListener(OnClickPosiBtn);
start.onClick.AddListener(OnClickStartBtn);
start.interactable = false;
time = transform.Find("time").gameObject;
timeText = transform.Find("time/txtCountdown").GetComponent<Text>();

View File

@ -55978,7 +55978,7 @@ MonoBehaviour:
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_Interactable: 0
m_TargetGraphic: {fileID: 5640692781816547267}
m_OnClick:
m_PersistentCalls: