| | |
| | | |
| | | private RectTransform m_heroRectTrans; |
| | | |
| | | private BattleHeroInfoBar battleHeroInfoBar; |
| | | |
| | | public RectTransform heroRectTrans |
| | | { |
| | |
| | | |
| | | renderers = heroGo.GetComponentsInChildren<Renderer>(true); |
| | | |
| | | Debug.LogError("YYL---1"); |
| | | heroInfoBar = heroGo.GetComponentInChildren<BattleHeroInfoBar>(true); |
| | | heroInfoBar.SetBattleObject(this); |
| | | } |
| | |
| | | public virtual void Run() |
| | | { |
| | | motionBase.Run(); |
| | | battleHeroInfoBar.Run(); |
| | | Debug.LogError("YYL---2"); |
| | | heroInfoBar.Run(); |
| | | } |
| | | |
| | | public virtual void Pause() |
| | |
| | | { |
| | | case PlayerDataType.HP: |
| | | long toHp = GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx); |
| | | battleHeroInfoBar.UpdateHP(teamHero.curHp, toHp, teamHero.maxHp); |
| | | heroInfoBar.UpdateHP(teamHero.curHp, toHp, teamHero.maxHp); |
| | | teamHero.curHp = GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx); |
| | | break; |
| | | case PlayerDataType.MaxHP: |