| | |
| | | return; |
| | | |
| | | // 高亮所有目标 |
| | | List<BattleObject> highlightList = battleField.battleObjMgr.GetBattleObjList(tagUseSkillAttack); |
| | | List<BattleObject> targetList = battleField.battleObjMgr.GetBattleObjList(tagUseSkillAttack); |
| | | List<BattleObject> highlightList = new List<BattleObject>(targetList); |
| | | highlightList.Add(caster); |
| | | |
| | | List<BattleObject> allList = battleField.battleObjMgr.allBattleObjDict.Values.ToList<BattleObject>(); |
| | | |
| | | caster.heroInfoBar.SetActive(false); |
| | | |
| | | for (int i = 0; i < allList.Count; i++) |
| | | { |
| | |
| | | if (highlightList.Contains(bo)) |
| | | { |
| | | bo.layerMgr.SetFront(); |
| | | bo.heroInfoBar.SetActive(true); |
| | | bo.heroRectTrans.SetParent(battleField.battleRootNode.skillFrontNode, true); |
| | | } |
| | | else |
| | |
| | | bo.layerMgr.SetBack(); |
| | | bo.heroRectTrans.SetParent(battleField.battleRootNode.skillBackNode, true); |
| | | } |
| | | |
| | | if (targetList.Contains(bo)) |
| | | { |
| | | bo.heroInfoBar.SetActive(true); |
| | | } |
| | | else |
| | | { |
| | | bo.heroInfoBar.SetActive(false); |
| | | } |
| | | } |
| | | |
| | | caster.layerMgr.SetSortingOrder(BattleConst.ActiveHeroActionSortingOrder); |
| | | |
| | | battleField.battleRootNode.skillMaskNode.SetActive(true); |
| | | |
| | |
| | | BattleObject bo = allList[i]; |
| | | bo.layerMgr.SetFront(); |
| | | bo.heroRectTrans.SetParent(battleField.GetTeamNode(bo.Camp, bo.teamHero.positionNum), true); |
| | | bo.heroInfoBar.SetActive(true); |
| | | } |
| | | battleField.battleRootNode.skillMaskNode.SetActive(false); |
| | | |
| | | |
| | | |
| | | |
| | | return true; |