using System.Collections.Generic; using GameTimeLine.CustomizeTimeLogic; using UnityEngine; using UTool.CustomizeTimeLogic.FxLogic.TimeLineEventinterface; namespace GameLogic.Combat.Hero { public class CombatHeroHitPoint : ILifetCycleHitPoint { public List allSpecialDotInfo = new List(); public CombatHeroEntity combatHeroEntity; public ILifeCycle IfLifeCycle { get { return combatHeroEntity; } } public Vector3 Position { get { return _hitPointMono.transform.position; } } private HitPointMono _hitPointMono; public T This() { return (T)(object)this; } public void Init(CombatHeroEntity combatHeroEntity, HitPointMono hitPointMono) { this.combatHeroEntity = combatHeroEntity; _hitPointMono = hitPointMono; } public SpecialDotInfo GetSpecialDotInfo(string specialDotName) { for (int i = 0; i < allSpecialDotInfo.Count; i++) { if (allSpecialDotInfo[i].dotName == specialDotName) { return allSpecialDotInfo[i]; } } return null; } } }