2024-06-18 08:45:49 +08:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta):
|
|
|
|
pass
|
|
|
|
|
2024-06-18 10:22:05 +08:00
|
|
|
func initButton():
|
|
|
|
$HBoxContainer/BEntrance.set_pressed_no_signal(true)
|
|
|
|
$HBoxContainer/StationHallBExit.set_pressed_no_signal(false)
|
|
|
|
$HBoxContainer/BPassage.set_pressed_no_signal(false)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
func _on_back_pressed():
|
|
|
|
$"..".back()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_b_passage_pressed():
|
2024-06-21 18:09:22 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.BPassage)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_b_entrance_pressed():
|
2024-06-18 10:22:05 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.BEntrance)
|
2024-06-18 08:45:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_station_hall_b_exit_pressed():
|
2024-06-21 18:09:22 +08:00
|
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.StationHallBExit)
|