yyl
2025-09-15 6a10188f3eddc740b9b8b1e7eefb0e2fdb3850e3
Main/System/Battle/BattleTweenMgr.cs
@@ -7,6 +7,8 @@
{
    private BattleField battleField;
    private float speedRatio => battleField.speedRatio;
    private List<Tween> tweenList = new List<Tween>();
    public void Init(BattleField _battleField)
@@ -45,6 +47,7 @@
        }
        tweenList.Add(tween);
        tween.timeScale = speedRatio;
        tween.onComplete += () =>
        { 
            tweenList.Remove(tween);
@@ -85,4 +88,15 @@
        }
        tweenList.Clear();
    }
    public void SetSpeedRatio(float ratio)
    {
        foreach (var tween in tweenList)
        {
            if (tween != null && !tween.IsComplete())
            {
                tween.timeScale = speedRatio;
            }
        }
    }
}