From 04ffe31b6a2b2fbcfecc83abb44a8aa233f2e53f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 02 二月 2026 18:45:57 +0800
Subject: [PATCH] 54 【淘金】切后台淘金完成 时间显示负数

---
 Main/System/HeroUI/HeroTrainAddAttrCell.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Main/System/HeroUI/HeroTrainAddAttrCell.cs b/Main/System/HeroUI/HeroTrainAddAttrCell.cs
index 91b1209..050c732 100644
--- a/Main/System/HeroUI/HeroTrainAddAttrCell.cs
+++ b/Main/System/HeroUI/HeroTrainAddAttrCell.cs
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using DG.Tweening;
 using UnityEngine;
 using UnityEngine.UI;
 
@@ -11,7 +12,7 @@
 public class HeroTrainAddAttrCell : MonoBehaviour
 {
     [SerializeField] Text[] addPerText;    //澧炲姞鐧惧垎姣旓紙椋樺姩锛� 鍔犲叆姹�
-    [SerializeField] PositionTween addPerObject;
+    [SerializeField] Transform addPerObject;
     
 
     public void Display(HeroInfo hero, Action func)
@@ -30,10 +31,13 @@
             }
             addPerText[i].text = addString + "+" + PlayerPropertyConfig.GetValueDescription(PlayerPropertyConfig.basePerAttrs[i], value);
         }
-        addPerObject.Play(() =>
+        addPerObject.localPosition = new Vector3(0, 0, 0);
+        addPerObject.DOLocalMove(new Vector3(0, 40, 0), 0.5f).OnComplete(()=>
         {
             func?.Invoke();
-        });
+        }
+        );
+
     }
 
 }
\ No newline at end of file

--
Gitblit v1.8.0