27 lines
633 B
GDScript
27 lines
633 B
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 initButton():
|
|
$HBoxContainer/SparePartsCabinet.set_pressed_no_signal(true)
|
|
$HBoxContainer/PartsArea.set_pressed_no_signal(false)
|
|
|
|
func _on_back_pressed():
|
|
$"..".back()
|
|
|
|
|
|
func _on_parts_area_pressed():
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.PartsArea)
|
|
|
|
|
|
func _on_spare_parts_cabinet_pressed():
|
|
$"..".switchCamera(LargePassengerFlowScene.Camera_name.SparePartsCabinet)
|