From 51ba5028bc77531828f84e6ef140c3c7042ec15f Mon Sep 17 00:00:00 2001 From: ddg <1453062510@qq.com> Date: Thu, 9 Oct 2025 09:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FSMManager/State/GuDingDaoGuanState.cs | 1 + .../Application/QiGuanChaGuan/UI/ScorePanel.cs | 17 ++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Assets/_Scripts/Application/QiGuanChaGuan/FSMManager/State/GuDingDaoGuanState.cs b/Assets/_Scripts/Application/QiGuanChaGuan/FSMManager/State/GuDingDaoGuanState.cs index b71fb0c..6078d55 100644 --- a/Assets/_Scripts/Application/QiGuanChaGuan/FSMManager/State/GuDingDaoGuanState.cs +++ b/Assets/_Scripts/Application/QiGuanChaGuan/FSMManager/State/GuDingDaoGuanState.cs @@ -27,6 +27,7 @@ namespace DongWuYiXue.QiGuanChaGuan { if (c.name.Equals("固定导管的高亮")) { + fsm.HideTipBtn(); fsm.HideArrow(); if (fsm.main_gameModel.modeType == ModeType.ShiXun) { diff --git a/Assets/_Scripts/Application/QiGuanChaGuan/UI/ScorePanel.cs b/Assets/_Scripts/Application/QiGuanChaGuan/UI/ScorePanel.cs index d3c63bf..5fdb333 100644 --- a/Assets/_Scripts/Application/QiGuanChaGuan/UI/ScorePanel.cs +++ b/Assets/_Scripts/Application/QiGuanChaGuan/UI/ScorePanel.cs @@ -17,16 +17,19 @@ namespace DongWuYiXue.QiGuanChaGuan base.Init(uictrl); scoreText = transform.FindFirst("Score"); } - public void SetScore(string addScore,string totalScore) + public void SetScore(string addScore, string totalScore) { - AddEffect(addScore,totalScore); + AddEffect(addScore, totalScore); } - void AddEffect(string score,string totalScore) + void AddEffect(string score, string totalScore) { - transform.FindFirst("AddScore_Txt").text = $"+{score}"; - transform.FindFirst("AddScoreAnim").gameObject.SetActive(false); - transform.FindFirst("AddScoreAnim").gameObject.SetActive(true); - scoreText.text = totalScore; + if (!score.Equals("0")) + { + transform.FindFirst("AddScore_Txt").text = $"+{score}"; + transform.FindFirst("AddScoreAnim").gameObject.SetActive(false); + transform.FindFirst("AddScoreAnim").gameObject.SetActive(true); + scoreText.text = totalScore; + } //switch (score) //{ // case "1":