| | |
| | | } |
| | | } |
| | | |
| | | protected void RefreshBuffCells(List<BattleBuffCell> cells, List<HB428_tagSCBuffRefresh> datas) |
| | | { |
| | | if (datas == null) |
| | | { |
| | | for (int i = 0; i < cells.Count; i++) |
| | | { |
| | | cells[i].SetActive(false); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (battleField.battleSwitch.BuffIcon) |
| | | { |
| | | for (int i = 0; i < cells.Count; i++) |
| | | { |
| | | var cell = cells[i]; |
| | | if (i < datas.Count) |
| | | { |
| | | cell.SetActive(true); |
| | | HB428_tagSCBuffRefresh buffData = datas[i]; |
| | | SkillConfig skillConfig = SkillConfig.Get((int)buffData.SkillID); |
| | | cell.Init(buffData, () => |
| | | { |
| | | // 点击buff图标 显示buff描述/当前身上所有buff |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | cell.SetActive(false); |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | for (int i = 0; i < cells.Count; i++) |
| | | { |
| | | cells[i].SetActive(false); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | protected virtual void BindMingge() |
| | | { |
| | | if (minggeObj == null) |