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

public class HealthComponent : MonoBehaviour
{
    [SerializeField] protected float _health;
    [SerializeField] protected float _healthMax;
    
    public float health
    {
        get
        {
            return _health;
        }
    }

    public float healthMax
    {
        get
        {
            return _healthMax;
        }
    }

    public void TakeDamage (float dmg)
    {
        _health -= dmg;
    }
}
