godot-psd-training/trainings/trainingOpenDoorFault/trainingOpenDoorFault.gd

16 lines
416 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():
$total.trainComeAndOpenScreenDoor()
$total.setAssignScreenDoorsOpenFault([TotalScene.ScreenDoor_name.screenDoor2])