| | |
| | | using System; |
| | | using UnityEngine; |
| | | using KTGMGemClient; |
| | | using TowerDefense.Agents; |
| | | |
| | | namespace Core.Health |
| | | { |
| | |
| | | info.attributeId = attributeId; |
| | | configuration.TakeDamage(damageValue, alignment, ref info); |
| | | var damageInfo = new HitInfo(info, damagePoint); |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessAgentTaskDamage, damageInfo.healthChangeInfo.absHealthDifference); |
| | | if (attributeId == 0) |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessOneHit); |
| | | |
| | | if (hit != null) |
| | | { |
| | | hit(damageInfo); |