Add 'GDscript Autoloads'
parent
f1d13716e0
commit
dfd5c1debe
|
@ -0,0 +1,14 @@
|
||||||
|
```gd
|
||||||
|
onready var util = get_node("/root/Util")
|
||||||
|
```
|
||||||
|
File util.gd
|
||||||
|
|
||||||
|
Contains common helper functions that can be used in multiple places in the codebase
|
||||||
|
|
||||||
|
```gd
|
||||||
|
onready var global_event_bus = get_node("/root/GlobalEventBus")
|
||||||
|
```
|
||||||
|
File: global_event_bus
|
||||||
|
Usage Example: effects/SinkBlock.gd
|
||||||
|
|
||||||
|
A place to put signals that need to be sent to between objects that don't share a scene
|
Loading…
Reference in New Issue