mirror of
https://github.com/Relintai/broken_seals_roguelike.git
synced 2025-01-29 17:29:18 +01:00
15 lines
272 B
GDScript3
15 lines
272 B
GDScript3
|
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()
|