Added global event bus
This commit is contained in:
parent
e98ba4ef27
commit
eb6f24a389
4 changed files with 15 additions and 0 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
6
scripts/event_bus.gd
Normal 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
1
scripts/event_bus.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://hxpxcxvxcisu
|
||||||
Loading…
Add table
Add a link
Reference in a new issue