mirror of
https://github.com/Relintai/broken_seals_roguelike.git
synced 2024-11-14 10:57:19 +01:00
15 lines
272 B
GDScript
15 lines
272 B
GDScript
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()
|