yyl
2025-09-12 c5c6c915069a1f93d10ee3d2c897beca1e100c8d
Main/System/Battle/BattleObject/BattleObject.cs
@@ -84,7 +84,6 @@
        Camp = _camp;
        motionBase = new MotionBase();
        motionBase.Init(heroGo.GetComponentInChildren<SkeletonGraphic>(true));
        motionBase.onAnimationComplete += OnAnimationComplete;
        buffMgr = new BattleObjectBuffMgr();
        buffMgr.Init(this);
@@ -120,7 +119,6 @@
    public virtual void Destroy()
    {
        motionBase.onAnimationComplete -= OnAnimationComplete;
        motionBase.Release();
        motionBase = null;
@@ -319,12 +317,6 @@
            OnDeadAnimationComplete();
            _onDeathAnimationComplete?.Invoke();
        });
    }
    //  不一定可靠 有时候会插入其他动作就完了
    protected virtual void OnAnimationComplete(string motionName)
    {
    }
    protected virtual void OnDeadAnimationComplete()