From c7df1cdf741115adb0daa83d86eb5ca190372bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8F=B7=E6=95=AC?= <153802103@qq.com> Date: Mon, 6 Jan 2025 09:15:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B2=9B=E4=B8=BB=E7=AB=9E=E6=8B=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/script/Panel/Islandpanel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meng_yao/Assets/script/Panel/Islandpanel.cs b/meng_yao/Assets/script/Panel/Islandpanel.cs index 4fe01740..588064ca 100644 --- a/meng_yao/Assets/script/Panel/Islandpanel.cs +++ b/meng_yao/Assets/script/Panel/Islandpanel.cs @@ -30,6 +30,11 @@ public class Islandpanel : MonoBehaviour introtext.text = response.Data.intro_text; InvesttotalText.text = response.Data.invest_total.ToString(); remainingTime = response.Data.countdown; + if(response.Data.island_id==0) + { + Dao.gameObject.SetActive(false); + islandname.gameObject.SetActive(false); + } islandname.text = response.Data.island_name; UpdateCountdownText(remainingTime); Dao.sprite = dao[response.Data.island_id];