19 lines
371 B
GDScript
19 lines
371 B
GDScript
extends Spatial
|
|
|
|
export var dialogic_timeline : String = ""
|
|
|
|
func on_player_focus_enter():
|
|
pass
|
|
|
|
func on_player_focus_exit():
|
|
pass
|
|
|
|
func on_player_interact(player) -> bool:
|
|
var node = Dialogic.start(dialogic_timeline)
|
|
node.pause_mode = PAUSE_MODE_PROCESS
|
|
add_child(node)
|
|
get_tree().paused = true
|
|
yield(node, "timeline_end")
|
|
get_tree().paused = false
|
|
return true
|