Browse Source

Merge pull request #3337 from felyperennan/patch-2

Best Practices - Godot interfaces: Fix in the C# code example
Max Hilbrunner 5 years ago
parent
commit
43ff436c13
1 changed files with 3 additions and 3 deletions
  1. 3 3
      getting_started/workflow/best_practices/godot_interfaces.rst

+ 3 - 3
getting_started/workflow/best_practices/godot_interfaces.rst

@@ -70,7 +70,7 @@ access.
 
 
     // Tool script added for the sake of the "const [Export]" example.
     // Tool script added for the sake of the "const [Export]" example.
     [Tool]
     [Tool]
-    public MyType : extends Object
+    public MyType
     {
     {
         // Property initializations load during Script instancing, i.e. .new().
         // Property initializations load during Script instancing, i.e. .new().
         // No "preload" loads during scene load exists in C#.
         // No "preload" loads during scene load exists in C#.
@@ -472,7 +472,7 @@ accesses:
   .. code-tab:: csharp
   .. code-tab:: csharp
 
 
     // Child.cs
     // Child.cs
-    public class Child extends Node
+    public class Child : Node
     {
     {
         public FuncRef FN = null;
         public FuncRef FN = null;
 
 
@@ -484,7 +484,7 @@ accesses:
     }
     }
 
 
     // Parent.cs
     // Parent.cs
-    public class Parent extends Node
+    public class Parent : Node
     {
     {
         public Node Child;
         public Node Child;