55 lines
1.2 KiB
GDScript
55 lines
1.2 KiB
GDScript
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()
|
|
$aPassageway.initButton()
|
|
elif ui == 'BPassageway':
|
|
$CameraSwitch.hide()
|
|
$bPassageway.show()
|
|
$bPassageway.initButton()
|
|
elif ui == 'CPassageway':
|
|
$CameraSwitch.hide()
|
|
$CPassageway.show()
|
|
$CPassageway.initButton()
|
|
elif ui == 'DPassageway':
|
|
$CameraSwitch.hide()
|
|
$DPassageWay.show()
|
|
$DPassageWay.initButton()
|
|
elif ui == 'VehicleControlRoom':
|
|
$CameraSwitch.hide()
|
|
$VehicleControlRoom.show()
|
|
$VehicleControlRoom.initButton()
|
|
elif ui == 'StaionHallA':
|
|
$CameraSwitch.hide()
|
|
$StaionHallA.show()
|
|
$StaionHallA.initButton()
|
|
elif ui == 'StaionHallB':
|
|
$CameraSwitch.hide()
|
|
$StationHallB.show()
|
|
$StationHallB.initButton()
|
|
|
|
func back():
|
|
$CameraSwitch.show()
|
|
$aPassageway.hide()
|
|
$bPassageway.hide()
|
|
$CPassageway.hide()
|
|
$DPassageWay.hide()
|
|
$StaionHallA.hide()
|
|
$StationHallB.hide()
|
|
$VehicleControlRoom.hide()
|