mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
Merge pull request #3337 from felyperennan/patch-2
Best Practices - Godot interfaces: Fix in the C# code example
This commit is contained in:
@@ -70,7 +70,7 @@ access.
|
||||
|
||||
// Tool script added for the sake of the "const [Export]" example.
|
||||
[Tool]
|
||||
public MyType : extends Object
|
||||
public MyType
|
||||
{
|
||||
// Property initializations load during Script instancing, i.e. .new().
|
||||
// No "preload" loads during scene load exists in C#.
|
||||
@@ -472,7 +472,7 @@ accesses:
|
||||
.. code-tab:: csharp
|
||||
|
||||
// Child.cs
|
||||
public class Child extends Node
|
||||
public class Child : Node
|
||||
{
|
||||
public FuncRef FN = null;
|
||||
|
||||
@@ -484,7 +484,7 @@ accesses:
|
||||
}
|
||||
|
||||
// Parent.cs
|
||||
public class Parent extends Node
|
||||
public class Parent : Node
|
||||
{
|
||||
public Node Child;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user