/// <summary> /// Applies damage tho itself. /// </summary> /// <param name="instigator"></param> public void ApplyDamage(IShooter instigator) { currentLifeText.text = life.ToString(); life -= instigator.getDamage(); if (life <= 0) { CheckDestruction(); } }