From 2a937a60eb5ac8c091b38d150cd2492c2e273042 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 10 十一月 2025 21:55:24 +0800
Subject: [PATCH] 0312 增加经验条特效

---
 Main/System/Main/HomeWin.cs |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Main/System/Main/HomeWin.cs b/Main/System/Main/HomeWin.cs
index 5486b7f..af5d95b 100644
--- a/Main/System/Main/HomeWin.cs
+++ b/Main/System/Main/HomeWin.cs
@@ -267,17 +267,20 @@
     {
         playerLevelText.text = PlayerDatas.Instance.baseData.LV.ToString();
         headEffect.transform.localPosition = new Vector3(400 * expSlider.value - 200 - 24, 0, 0);
-        ShowExp();
+        ShowExp(false);
 
     }
 
-    void ShowExp()
+    void ShowExp(bool showEffect = true)
     {
         var lvConfig = PlayerLVConfig.Get(PlayerDatas.Instance.baseData.LV);
         expSlider.value = (float)PlayerDatas.Instance.baseData.curExp / lvConfig.EXP;
         expSlider.Text.text = PlayerDatas.Instance.baseData.curExp + "/" + PlayerLVConfig.Get(PlayerDatas.Instance.baseData.LV).EXP;
-        headEffect.transform.DOLocalMove(new Vector3(400 * expSlider.value - 200 - 24, 0, 0), 0.5f);
-        headEffect.Play(closePMA:true);
+        if (showEffect)
+        {
+            headEffect.transform.DOLocalMove(new Vector3(400 * expSlider.value - 200 - 24, 0, 0), 0.5f);
+            headEffect.Play(closePMA:true);
+        }
     }
 
 

--
Gitblit v1.8.0