Browse Source

Remove erroneous C# example about autoloads

Paul Joannon 2 years ago
parent
commit
0614837c22
1 changed files with 1 additions and 6 deletions
  1. 1 6
      tutorials/scripting/singletons_autoload.rst

+ 1 - 6
tutorials/scripting/singletons_autoload.rst

@@ -87,18 +87,13 @@ This means that any node can access a singleton named "PlayerVariables" with:
     playerVariables.Health -= 10; // Instance field.
     playerVariables.Health -= 10; // Instance field.
 
 
 If the **Enable** column is checked (which is the default), then the singleton can
 If the **Enable** column is checked (which is the default), then the singleton can
-be accessed directly without requiring ``get_node()``:
+be accessed directly in GDScript, without requiring ``get_node()``:
 
 
 .. tabs::
 .. tabs::
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript
 
 
    PlayerVariables.health -= 10
    PlayerVariables.health -= 10
 
 
- .. code-tab:: csharp
-
-    // Static members can be accessed by using the class name.
-    PlayerVariables.Health -= 10;
-
 Note that autoload objects (scripts and/or scenes) are accessed just like any
 Note that autoload objects (scripts and/or scenes) are accessed just like any
 other node in the scene tree. In fact, if you look at the running scene tree,
 other node in the scene tree. In fact, if you look at the running scene tree,
 you'll see the autoloaded nodes appear:
 you'll see the autoloaded nodes appear: