hch
5 天以前 cb4ec28d83ba847f362392936b20e52e17b03081
Main/System/Battle/UIComp/BattleFloatingUIController.cs
@@ -270,8 +270,9 @@
        {
            float timeProgress = timer / config.scaleChangeTime;
            
            // 使用曲线来调整缩放插值进度
            float scaleProgress = config.scaleCurve.Evaluate(timeProgress);
            // 根据是否暴击选择对应的缩放曲线
            AnimationCurve scaleCurve = isCritical ? config.critScaleCurve : config.normalScaleCurve;
            float scaleProgress = scaleCurve.Evaluate(timeProgress);
            Vector3 currentScale = Vector3.Lerp(GetBeginScale(), GetEndScale(), scaleProgress);
            rectTransform.localScale = currentScale * scaleRatio;