using UnityEngine; namespace Core.Health { /// /// Damage info - a class required by some damage listeners /// public struct HitInfo { readonly HealthChangeInfo m_HealthChangeInfo; readonly Vector3 m_DamagePoint; /// /// Gets or sets the health change info. /// /// The health change info. public HealthChangeInfo healthChangeInfo { get { return m_HealthChangeInfo; } } /// /// Gets or sets the damage point. /// /// The damage point. public Vector3 damagePoint { get { return m_DamagePoint; } } /// /// Initializes a new instance of the struct. /// /// The health change info /// Damage point. public HitInfo(HealthChangeInfo info, Vector3 damageLocation) { m_DamagePoint = damageLocation; m_HealthChangeInfo = info; } } }