This commit is contained in:
GL 2024-11-16 02:24:44 +08:00
parent fe7569ee48
commit c8f594faf8

View File

@ -63,6 +63,7 @@ public class AllHouseContro : MonoBehaviour
} }
is_jisha_jiesuan = false; is_jisha_jiesuan = false;
is_jisha = false; is_jisha = false;
} }
public bool is_jisha = false; public bool is_jisha = false;
public bool is_jisha_jiesuan = false; public bool is_jisha_jiesuan = false;
@ -88,6 +89,7 @@ public class AllHouseContro : MonoBehaviour
battleRoyaleGameDetails(); battleRoyaleGameDetails();
} }
else if (serverResponse.data.carrySeconds < 45){ else if (serverResponse.data.carrySeconds < 45){
ControAllDoorOpen();
text.GetComponentInChildren<Text>().text = (60 - serverResponse.data.carrySeconds).ToString(); text.GetComponentInChildren<Text>().text = (60 - serverResponse.data.carrySeconds).ToString();
detailsText.GetComponentInChildren<Text>().text = "秒后霸主出现"; detailsText.GetComponentInChildren<Text>().text = "秒后霸主出现";
await Task.Delay(1000); await Task.Delay(1000);
@ -97,6 +99,7 @@ public class AllHouseContro : MonoBehaviour
} }
else if (serverResponse.data.carrySeconds > 45 && serverResponse.data.carrySeconds < 50) else if (serverResponse.data.carrySeconds > 45 && serverResponse.data.carrySeconds < 50)
{ {
ControAllDoorClose();//关门
text.GetComponentInChildren<Text>().text = ""; text.GetComponentInChildren<Text>().text = "";
detailsText.GetComponentInChildren<Text>().text = "霸主出现了"; detailsText.GetComponentInChildren<Text>().text = "霸主出现了";
if (!is_jisha){ if (!is_jisha){