diff options
Diffstat (limited to 'Main.tscn')
-rw-r--r-- | Main.tscn | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -[gd_scene load_steps=18 format=2] +[gd_scene load_steps=20 format=2] [ext_resource path="res://character/fps_controller/fps_controller.tscn" type="PackedScene" id=1] [ext_resource path="res://ship/ship/ship.tscn" type="PackedScene" id=2] @@ -8,6 +8,8 @@ [ext_resource path="res://World.gd" type="Script" id=6] [ext_resource path="res://Ship.gd" type="Script" id=7] [ext_resource path="res://FPS.gd" type="Script" id=8] +[ext_resource path="res://Main.gd" type="Script" id=9] +[ext_resource path="res://Trigger.tscn" type="PackedScene" id=10] [sub_resource type="BoxShape" id=19] extents = Vector3( 1000, 0.1, 1000 ) @@ -41,6 +43,7 @@ radius = 11.4853 height = 97.7559 [node name="Main" type="Spatial"] +script = ExtResource( 9 ) [node name="DirectionalLight" type="DirectionalLight" parent="."] transform = Transform( -0.560061, -0.107905, 0.821394, 0, 0.991481, 0.130249, -0.828452, 0.0729474, -0.55529, 0, 10, 0 ) @@ -156,6 +159,9 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 17, 44 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 50, 70 ) far = 5000.0 +[node name="lower_deck_trigger" parent="ShipRigidBody" instance=ExtResource( 10 )] +transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 3.43947, 1.05268, 34.1792 ) + [node name="crates" type="Spatial" parent="."] [node name="crate" parent="crates" instance=ExtResource( 5 )] @@ -1904,3 +1910,5 @@ margin_bottom = 68.0 script = ExtResource( 8 ) [connection signal="body_exited" from="WorldGenCull" to="World" method="_on_WorldGenCull_body_exited"] +[connection signal="entered" from="ShipRigidBody/lower_deck_trigger" to="." method="_on_lower_deck_trigger_entered"] +[connection signal="exited" from="ShipRigidBody/lower_deck_trigger" to="." method="_on_lower_deck_trigger_exited"] |