xiandie/scene/gallery/clips/clip1.gd

27 lines
701 B
GDScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

extends Node2D
# 发送此信号会重载当前 clip重置所有进度自动退出 display 状态)
signal display_finished
var dialogue_c02 = preload("res://asset/dialogue/c02.dialogue")
# card_mode 卡片模式 / 完整模式
func run_clip(card_mode: bool):
$ProPlayer.play("c00_吕萍_蹲下")
$"李氏赖子房间人影".play()
if not card_mode:
# 增加配音
dialog_node = DialogueManager.show_dialogue_balloon(dialogue_c02, "c02_04_李氏癞子")
dialog_node.process_mode = Node.PROCESS_MODE_ALWAYS
await DialogueManager.dialogue_ended
display_finished.emit()
var dialog_node
func _exit_tree() -> void:
if is_instance_valid(dialog_node):
dialog_node.queue_free()