singletons_autoload.rst: Eplain Singleton names...

...can be used directly.
This commit is contained in:
Fallayn 2017-10-17 22:06:34 +02:00 committed by GitHub
parent 3db734cd93
commit 5c44bdf74c
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,13 @@ This means that any node can access a singleton named "playervariables" with:
::
var player_vars = get_node("/root/playervariables")
player_vars.health
Or even simpler using the name directly:
::
playervariables.health
Custom scene switcher
---------------------