| | |
| | | |
| | | public override void OnMiddleFrameEnd(int times, int hitIndex) |
| | | { |
| | | BattleDebug.LogError($" NormalSkillEffect OnMiddleFrameEnd times : {times}, hitIndex : {hitIndex}"); |
| | | for (int i = 0; i < tagUseSkillAttack.HurtList.Length; i++) |
| | | { |
| | | var hurt = tagUseSkillAttack.HurtList[i]; |
| | | BattleObject target = caster.battleField.battleObjMgr.GetBattleObject((int)hurt.ObjID); |
| | | if (target == null) |
| | | { |
| | | Debug.LogError("特效目标为空 target == null ObjId : " + hurt.ObjID); |
| | | BattleDebug.LogError("特效目标为空 target == null ObjId : " + hurt.ObjID); |
| | | continue; |
| | | } |
| | | |
| | | /*var effect1 = */ |
| | | caster.battleField.battleEffectMgr.PlayEffect(target.ObjID, skillConfig.ExplosionEffectId, target.heroGo.transform); |
| | | /*var effect2 = */ |
| | | caster.battleField.battleEffectMgr.PlayEffect(target.ObjID, skillConfig.ExplosionEffect2, target.heroGo.transform); |
| | | // if (effect1 != null) |
| | | // { |
| | | // effect1.transform.localRotation = effectTrans.localRotation; |
| | | // } |
| | | // if (effect2 != null) |
| | | // { |
| | | // effect2.transform.localRotation = effectTrans.localRotation; |
| | | // } |
| | | } |
| | | |
| | | // 为什么没触发 |
| | | onHit?.Invoke(hitIndex, tagUseSkillAttack.HurtList.ToList()); |
| | | isFinish = true; |
| | | } |
| | | |
| | | public override void OnMiddleFrameStart(int times) |