2024-06-17 19:49:24 +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
|
|
|
|
|
|
|
|
func switchCamera(camera):
|
|
|
|
$"..".switchCamera(camera)
|
|
|
|
|
|
|
|
func uiChange(ui):
|
|
|
|
if ui == 'APassageway':
|
|
|
|
$CameraSwitch.hide()
|
|
|
|
$aPassageway.show()
|
|
|
|
elif ui == 'BPassageway':
|
|
|
|
$CameraSwitch.hide()
|
|
|
|
$bPassageway.show()
|
|
|
|
elif ui == 'CPassageway':
|
|
|
|
$CameraSwitch.hide()
|
2024-06-18 08:45:49 +08:00
|
|
|
$CPassageway.show()
|
2024-06-17 19:49:24 +08:00
|
|
|
elif ui == 'DPassageway':
|
|
|
|
$CameraSwitch.hide()
|
2024-06-18 08:45:49 +08:00
|
|
|
$DPassageway.show()
|
|
|
|
|
|
|
|
func back():
|
|
|
|
$CameraSwitch.show()
|
|
|
|
$aPassageway.hide()
|
|
|
|
$bPassageway.hide()
|
|
|
|
$CPassageway.hide()
|
|
|
|
$DPassageWay.hide()
|
|
|
|
$StaionHallA.hide()
|
|
|
|
$StationHallB.hide()
|
|
|
|
$VehicleControlRoom.hide()
|