summaryrefslogtreecommitdiff
path: root/demos/3d/truck_town/car_select.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/3d/truck_town/car_select.gd')
-rw-r--r--demos/3d/truck_town/car_select.gd32
1 files changed, 0 insertions, 32 deletions
diff --git a/demos/3d/truck_town/car_select.gd b/demos/3d/truck_town/car_select.gd
deleted file mode 100644
index 4efcf63426..0000000000
--- a/demos/3d/truck_town/car_select.gd
+++ /dev/null
@@ -1,32 +0,0 @@
-
-extends Control
-
-# Member variables
-var town = null
-
-
-func _back():
- town.queue_free()
- show()
-
-
-func _load_scene(car):
- var tt = load(car).instance()
- tt.set_name("car")
- town = load("res://truck_scene.scn").instance()
- town.get_node("instance_pos").add_child(tt)
- town.get_node("back").connect("pressed", self, "_back")
- get_parent().add_child(town)
- hide()
-
-
-func _on_van_1_pressed():
- _load_scene("res://car_base.scn")
-
-
-func _on_van_2_pressed():
- _load_scene("res://trailer_truck.scn")
-
-
-func _on_van_3_pressed():
- _load_scene("res://crane.scn")