godot-psd-training/trainings/trainingGlassBreakageFault/trainingGlassBreakageFault.gd
2024-05-08 16:15:27 +08:00

19 lines
440 B
GDScript

extends Node
## 实训名称
@export var trainingName: String = "实训"
## 场景描述
@export var trainingDesc: String = "场景描述"
func _ready():
$TrainingDescDialog.title = trainingName
$TrainingDescDialog.updateSceneDesc(trainingDesc)
func _on_training_desc_dialog_start_training():
$Timer.start()
func _on_timer_timeout() -> void:
$total.setAssignScreenDoorsGlassBreakageFault([TotalScene.ScreenDoor_name.screenDoor2])