public void DoDamage(ProyectileInfo proyectile) { healthPoints -= proyectile.Damage; if (healthPoints > 0) { return; } LogsController.Log($"{gameObject.name} died."); }
public void SetInfo(ProyectileInfo proyectileInfo) { this.proyectileInfo = proyectileInfo; currentLife = proyectileInfo.Life; spawnDelay = proyectileInfo.SpawnDelay; }