broken_seals_roguelike/game/ui/game_over_window/GameOverWindow.gd

15 lines
272 B
GDScript3
Raw Normal View History

2020-07-16 16:19:33 +02:00
extends PanelContainer
var _player : Entity
func set_player(p_player: Entity) -> void:
if _player != null:
_player.disconnect("diecd", self, "on_died")
_player = p_player
_player.connect("diecd", self, "on_died")
func on_died(p_player: Entity) -> void:
show()