| | |
| | | |
| | | 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; |
| | | |
| | |
| | | buffMgr = new BattleObjectBuffMgr(); |
| | | buffMgr.Init(this); |
| | | |
| | | layerMgr = new BattleObjectLayerMgr(); |
| | | layerMgr.Init(this); |
| | | |
| | | renderers = heroGo.GetComponentsInChildren<Renderer>(true); |
| | | |
| | | heroInfoBar = heroGo.GetComponentInChildren<BattleHeroInfoBar>(true); |
| | |
| | | var heroInfoBarScale = heroInfoBar.transform.localScale; |
| | | heroInfoBarScale.x *= Camp == BattleCamp.Red ? 1 : -1; |
| | | heroInfoBar.transform.localScale = heroInfoBarScale; |
| | | |
| | | |
| | | heroInfoBar.SetActive(true); |
| | | SetFront(); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | motionBase.Run(); |
| | | heroInfoBar.Run(); |
| | | buffMgr.Run(); |
| | | } |
| | | |
| | | public virtual void Pause() |
| | |
| | | { |
| | | motionBase.PlayAnimation(MotionName.hit, false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public void SuckHp(uint suckHP, SkillConfig skillConfig) |
| | | { |
| | |
| | | |
| | | public void HurtByReflect(uint bounceHP, SkillConfig skillConfig) |
| | | { |
| | | |
| | | |
| | | } |
| | | |
| | | // 闪避开始 |
| | |
| | | { |
| | | // 或许看看溶解特效? YYL TODO |
| | | heroGo.SetActive(false); |
| | | |
| | | buffMgr.RemoveAllBuff(); |
| | | } |
| | | |
| | | public void OnReborn(HB423_tagMCTurnFightObjReborn vNetData) |
| | |
| | | heroRectTrans.anchoredPosition = Vector2.zero; |
| | | |
| | | heroInfoBar.SetActive(false); |
| | | SetFront(); |
| | | } |
| | | |
| | | public void PushDropItems(BattleDrops _battleDrops) |
| | |
| | | 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 |