diff --git a/project.godot b/project.godot index ecc2b8b..b536373 100644 --- a/project.godot +++ b/project.godot @@ -15,6 +15,10 @@ run/main_scene="uid://d4j36ro8y55ep" config/features=PackedStringArray("4.6", "Forward Plus") config/icon="res://icon.svg" +[autoload] + +EventBus="*uid://hxpxcxvxcisu" + [physics] 3d/physics_engine="Jolt Physics" diff --git a/scenes/survivor.gd b/scenes/survivor.gd index 66ac67c..6bce050 100644 --- a/scenes/survivor.gd +++ b/scenes/survivor.gd @@ -11,3 +11,7 @@ func start(xform): func _physics_process(delta): velocity.z -= speed * delta move_and_slide() + + +func _on_area_3d_area_entered(area: Area3D) -> void: + pass # Replace with function body. diff --git a/scripts/event_bus.gd b/scripts/event_bus.gd new file mode 100644 index 0000000..c817135 --- /dev/null +++ b/scripts/event_bus.gd @@ -0,0 +1,6 @@ +extends Node + +@warning_ignore_start("unused_signal") # since otherwise Godot will throw a warning that the signal is unused in current scope + + +@warning_ignore_restore("unused_signal") # put any future signals you add between the two ignore annotations diff --git a/scripts/event_bus.gd.uid b/scripts/event_bus.gd.uid new file mode 100644 index 0000000..49201a4 --- /dev/null +++ b/scripts/event_bus.gd.uid @@ -0,0 +1 @@ +uid://hxpxcxvxcisu