using UnityEngine;

public class PlayerDead : MonoBehaviour
{
    [SerializeField] HealthSystem _healthSystem;

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        Dead();
    }
    private void Dead()
    {
        if (_healthSystem._currentHealth<=_healthSystem._minHealth)
        {
         Debug.Log("Dead");
        }
    }
}
