Added global event bus

This commit is contained in:
Henry 2026-05-09 17:13:25 +01:00
parent e98ba4ef27
commit eb6f24a389
4 changed files with 15 additions and 0 deletions

View file

@ -15,6 +15,10 @@ run/main_scene="uid://d4j36ro8y55ep"
config/features=PackedStringArray("4.6", "Forward Plus") config/features=PackedStringArray("4.6", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[autoload]
EventBus="*uid://hxpxcxvxcisu"
[physics] [physics]
3d/physics_engine="Jolt Physics" 3d/physics_engine="Jolt Physics"

View file

@ -11,3 +11,7 @@ func start(xform):
func _physics_process(delta): func _physics_process(delta):
velocity.z -= speed * delta velocity.z -= speed * delta
move_and_slide() move_and_slide()
func _on_area_3d_area_entered(area: Area3D) -> void:
pass # Replace with function body.

6
scripts/event_bus.gd Normal file
View file

@ -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

1
scripts/event_bus.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://hxpxcxvxcisu