using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyHealthController : MonoBehaviour
{

    public int totalHealth = 3;

    public void DamageEnemy(int damageAmount)
    {
        totalHealth -= damageAmount;

        
    }

    void Update()
    {
        if(totalHealth <= 0)
        {
            Destroy(gameObject);
        }
    }
}
