Skip to content

Commit a99a4ae

Browse files
authored
Merge pull request godotengine#7604 from paulloz/dotnet/remove-wrong-autoload-code
Remove erroneous C# example about autoloads
2 parents 9109bc0 + 0614837 commit a99a4ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tutorials/scripting/singletons_autoload.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,13 @@ This means that any node can access a singleton named "PlayerVariables" with:
8787
playerVariables.Health -= 10; // Instance field.
8888

8989
If the **Enable** column is checked (which is the default), then the singleton can
90-
be accessed directly without requiring ``get_node()``:
90+
be accessed directly in GDScript, without requiring ``get_node()``:
9191

9292
.. tabs::
9393
.. code-tab:: gdscript GDScript
9494

9595
PlayerVariables.health -= 10
9696

97-
.. code-tab:: csharp
98-
99-
// Static members can be accessed by using the class name.
100-
PlayerVariables.Health -= 10;
101-
10297
Note that autoload objects (scripts and/or scenes) are accessed just like any
10398
other node in the scene tree. In fact, if you look at the running scene tree,
10499
you'll see the autoloaded nodes appear:

0 commit comments

Comments
 (0)