| | |
| | | public Text txtBossName; |
| | | public Text txtBattleRound; |
| | | public TotalDamageDisplayer totalDamageDisplayer; |
| | | // public SkillTips skillTipsRed; |
| | | // public SkillTips skillTipsBlue; |
| | | public SkillTips skillTipsRed; |
| | | public SkillTips skillTipsBlue; |
| | | private BattleObject bossBattleObject = null; |
| | | // [SerializeField] public List<BattleBuffCell> buffCells; |
| | | [SerializeField] public List<BattleBuffCell> buffCells; |
| | | |
| | | // 生命周期 |
| | | protected override void InitComponent() |
| | |
| | | |
| | | BattleObject battleObject = battleField.battleObjMgr.GetBattleObject(teamHero.ObjID); |
| | | bool isRed = battleObject.Camp == BattleCamp.Red; |
| | | // SkillTips tips = isRed ? skillTipsRed : skillTipsBlue; |
| | | // tips.PlayMotion(battleField, isRed, teamHero, skillConfig); |
| | | SkillTips tips = isRed ? skillTipsRed : skillTipsBlue; |
| | | tips.PlayMotion(battleField, isRed, teamHero, skillConfig); |
| | | } |
| | | |
| | | private void OnCreateBattleField(string arg1, BattleField field) |
| | |
| | | |
| | | totalDamageDisplayer.SetActive(false); |
| | | |
| | | // skillTipsBlue.SetActive(false); |
| | | // skillTipsRed.SetActive(false); |
| | | skillTipsBlue.SetActive(false); |
| | | skillTipsRed.SetActive(false); |
| | | } |
| | | |
| | | private void OnBuffChanged() |
| | |
| | | { |
| | | buffList = bossBattleObject.buffMgr.GetBuffList(); |
| | | } |
| | | // RefreshBuff(buffList); |
| | | RefreshBuff(buffList); |
| | | } |
| | | |
| | | private void RefreshHP() |
| | |
| | | } |
| | | } |
| | | |
| | | // public void RefreshBuff(List<HB428_tagSCBuffRefresh> datas) |
| | | // { |
| | | // if (buffCells.IsNullOrEmpty()) |
| | | // return; |
| | | public void RefreshBuff(List<HB428_tagSCBuffRefresh> datas) |
| | | { |
| | | if (buffCells.IsNullOrEmpty()) |
| | | return; |
| | | |
| | | |
| | | // for (int i = 0; i < buffCells.Count; i++) |
| | | // { |
| | | // if (i < datas.Count) |
| | | // { |
| | | // buffCells[i].SetActive(true); |
| | | // HB428_tagSCBuffRefresh buffData = datas[i]; |
| | | // buffCells[i].Init(buffData, () => |
| | | // { |
| | | // // 点击buff图标 显示buff描述/当前身上所有buff |
| | | // }); |
| | | // } |
| | | // else |
| | | // { |
| | | // buffCells[i].SetActive(false); |
| | | // } |
| | | // } |
| | | // } |
| | | for (int i = 0; i < buffCells.Count; i++) |
| | | { |
| | | if (i < datas.Count) |
| | | { |
| | | buffCells[i].SetActive(true); |
| | | HB428_tagSCBuffRefresh buffData = datas[i]; |
| | | buffCells[i].Init(buffData, () => |
| | | { |
| | | // 点击buff图标 显示buff描述/当前身上所有buff |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | buffCells[i].SetActive(false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void OnRoundChange(int round, int maxRound) |
| | | { |