public void RegisterPlayer(Player player) { this.player = player; hpBar.SetSource(player.GetDamageController()); }