/// <summary> /// Removes an existing <see cref="IDamageAbsorber"/> /// </summary> public void RemoveDmgAbsorption(IDamageAbsorber absorber) { if (m_absorbers != null) { m_absorbers.Remove(absorber); } }
/// <summary> /// Adds a new <see cref="IDamageAbsorber"/> /// </summary> public void AddDmgAbsorption(IDamageAbsorber absorber) { if (m_absorbers == null) { m_absorbers = new List<IDamageAbsorber>(1); } m_absorbers.Add(absorber); }