Main/System/Battle/BattleObject/BattleObject.cs
@@ -32,13 +32,13 @@
    public BattleObjectBuffMgr buffMgr;
    public BattleObjectLayerMgr layerMgr;
    public int ObjID { get; set; }
    public BattleCamp Camp { get; protected set; }
    public TeamHero teamHero { get; protected set; }
    // public BuffMgr buffMgr;
    public MotionBase motionBase;
@@ -87,6 +87,9 @@
        buffMgr = new BattleObjectBuffMgr();
        buffMgr.Init(this);
        layerMgr = new BattleObjectLayerMgr();
        layerMgr.Init(this);
        renderers = heroGo.GetComponentsInChildren<Renderer>(true);
        heroInfoBar = heroGo.GetComponentInChildren<BattleHeroInfoBar>(true);
@@ -96,8 +99,9 @@
        var heroInfoBarScale = heroInfoBar.transform.localScale;
        heroInfoBarScale.x *= Camp == BattleCamp.Red ? 1 : -1;
        heroInfoBar.transform.localScale = heroInfoBarScale;
        heroInfoBar.SetActive(true);
        SetFront();
    }
@@ -105,6 +109,7 @@
    {
        motionBase.Run();
        heroInfoBar.Run();
        buffMgr.Run();
    }
    public virtual void Pause()
@@ -271,7 +276,7 @@
        {
            motionBase.PlayAnimation(MotionName.hit, false);
        }
    }
    }
    public void SuckHp(uint suckHP, SkillConfig skillConfig)
    {
@@ -280,7 +285,7 @@
    public void HurtByReflect(uint bounceHP, SkillConfig skillConfig)
    {
    }
    //  闪避开始
@@ -325,6 +330,8 @@
    {
        //  或许看看溶解特效? YYL TODO
        heroGo.SetActive(false);
        buffMgr.RemoveAllBuff();
    }
    public void OnReborn(HB423_tagMCTurnFightObjReborn vNetData)
@@ -386,6 +393,7 @@
        heroRectTrans.anchoredPosition = Vector2.zero;
        heroInfoBar.SetActive(false);
        SetFront();
    }
    public void PushDropItems(BattleDrops _battleDrops)
@@ -407,8 +415,20 @@
        battleDrops = null;
    }
    public void SetBack()
    {
        layerMgr.SetBack();
    }
    public void SetFront()
    {
        layerMgr.SetFront();
    }
    public void SetSpeedRatio(float ratio)
    {
        motionBase.SetSpeedRatio(ratio);
    }
#if UNITY_EDITOR_STOP_USING