From 0cf030aca0aaddc7809445a7cdffb322e98222dc Mon Sep 17 00:00:00 2001 From: "DESKTOP-DDTRVOR\\asus" <1162187704@qq.com> Date: Sat, 28 Dec 2024 15:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- box1/Assets/Script/UI/EventSystem.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/box1/Assets/Script/UI/EventSystem.cs b/box1/Assets/Script/UI/EventSystem.cs index aadf8537..1e3a07a8 100644 --- a/box1/Assets/Script/UI/EventSystem.cs +++ b/box1/Assets/Script/UI/EventSystem.cs @@ -20,26 +20,26 @@ public class EventSystem : MonoBehaviour moveTime += data.Event1; break; case 3: - pointsRatio += data.Event1; + points += data.Event1; break; case 4: var intSpeed0 = (float)speed * (((float)data.Event1) / 100); speed -= (int)intSpeed0; - points += data.Event2; + pointsRatio += data.Event2; break; case 5: var intSpeed1 = (float)speed * (((float)data.Event1) / 100); speed -= (int)intSpeed1; - pointsRatio += data.Event2; + points += data.Event2; break; case 6: moveTime -= data.Event1; - points += data.Event2; + pointsRatio += data.Event2; break; case 7: moveTime -= data.Event1; - pointsRatio += data.Event2; + points += data.Event2; break; } }