Exemple #1
0
		/// <summary>
		/// Removes an existing <see cref="IDamageAbsorber"/>
		/// </summary>
		public void RemoveDmgAbsorption(IDamageAbsorber absorber)
		{
			if (m_absorbers != null)
			{
				m_absorbers.Remove(absorber);
			}
		}
Exemple #2
0
		/// <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);
		}