public void update_heart_containers() { int player_lives = player_lives_obj.get_player_lives(); if (player_lives == 3) { hearts[0].SetActive(true); hearts[1].SetActive(true); hearts[2].SetActive(true); } else if (player_lives == 2) { hearts[0].SetActive(true); hearts[1].SetActive(true); hearts[2].SetActive(false); } else if (player_lives == 1) { hearts[0].SetActive(true); hearts[1].SetActive(false); hearts[2].SetActive(false); } else { hearts[0].SetActive(false); hearts[1].SetActive(false); hearts[2].SetActive(false); } }