18 lines
381 B
GDScript
18 lines
381 B
GDScript
extends Spatial
|
|
|
|
export var id: int
|
|
|
|
func _on_Area_body_entered(body: Node):
|
|
if body.get_parent() != Util.player:
|
|
return
|
|
SavedDialogueProgress.find_blackbox(id)
|
|
var ping = get_node_or_null("SignalGenerator")
|
|
if ping != null:
|
|
ping.destroy()
|
|
|
|
|
|
func _on_Area_body_exited(body):
|
|
if body.get_parent() != Util.player:
|
|
return
|
|
SavedDialogueProgress.hide_blackbox_dialogue(id)
|