void Update() { // TODO: Do something when health bar is empty if (healthBarManager.IsHealthBarEmpty() == true) { Debug.Log("Player"); } }