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

21 lines
534 B
GDScript3
Raw Normal View History

2024-05-10 16:53:03 +08:00
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.setAssignScreenDoorsPinchPeopleFault([TotalScene.ScreenDoor_name.screenDoor2])
$CloseScreenDoorTimer.start()
func _on_close_screen_door_timer_timeout() -> void:
$total.closeScreenDoor()