53 lines
1.1 KiB
GDScript
53 lines
1.1 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 _on_vehicle_control_room_pressed():
|
|
switchCamera($"..".Camera_name.VehicleControlRoom)
|
|
|
|
|
|
func _on_station_hall_pressed():
|
|
switchCamera($"..".Camera_name.StationHall)
|
|
|
|
func _on_up_platform_pressed():
|
|
switchCamera($"..".Camera_name.UpPlatform)
|
|
|
|
|
|
func _on_down_platform_pressed():
|
|
switchCamera($"..".Camera_name.DownPlatform)
|
|
|
|
|
|
func _on_a_passageway_pressed():
|
|
switchCamera($"..".Camera_name.APassageway)
|
|
|
|
|
|
func _on_b_passageway_pressed():
|
|
switchCamera($"..".Camera_name.BPassageway)
|
|
|
|
|
|
func _on_c_passageway_pressed():
|
|
switchCamera($"..".Camera_name.CPassageway)
|
|
|
|
|
|
func _on_d_passageway_pressed():
|
|
switchCamera($"..".Camera_name.DPassageway)
|
|
|
|
|
|
func _on_staion_hall_a_pressed():
|
|
switchCamera($"..".Camera_name.StaionHallA)
|
|
|
|
|
|
func _on_station_hall_b_pressed():
|
|
switchCamera($"..".Camera_name.StationHallB)
|