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":