21 lines
613 B
GDScript3
21 lines
613 B
GDScript3
|
extends CanvasLayer
|
||
|
|
||
|
signal exit(arg)
|
||
|
|
||
|
|
||
|
func _ready() -> void:
|
||
|
layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME
|
||
|
SceneManager.lock_player()
|
||
|
DialogueManager.show_dialogue_balloon(GlobalConfig.DIALOG_C03, "c03_s03_理发店演出3")
|
||
|
$PPTHelper.presentation_finished.connect(_on_presentation_finished)
|
||
|
await DialogueManager.dialogue_ended
|
||
|
if not presentation_finished:
|
||
|
await $PPTHelper.presentation_finished
|
||
|
EventManager.set_stage("c03_s03_laizi_braid", 2)
|
||
|
SceneManager.unlock_player()
|
||
|
exit.emit(true)
|
||
|
|
||
|
var presentation_finished = false
|
||
|
|
||
|
func _on_presentation_finished() -> void:
|
||
|
presentation_finished = true
|