From 8b391dc94610cb68a200a2113ffaac2ea86a732c Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Mon, 30 Dec 2024 12:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E6=9D=80=E7=9A=84bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/script/A_Fight/UIContorl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meng_yao/Assets/script/A_Fight/UIContorl.cs b/meng_yao/Assets/script/A_Fight/UIContorl.cs index 6736c9ba..31de87ce 100644 --- a/meng_yao/Assets/script/A_Fight/UIContorl.cs +++ b/meng_yao/Assets/script/A_Fight/UIContorl.cs @@ -37,8 +37,9 @@ public class UIContorl : Base { killnumber = value; this.KIllNumberText.text = killnumber + "/" + maxEnemynumber; - if (killnumber==maxEnemynumber) + if (killnumber>=maxEnemynumber) { + killnumber = maxEnemynumber; gameGlobal.GameVictory(); } }