mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Fix errors in What are Godot classes
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
This commit is contained in:
@@ -186,7 +186,7 @@ with it, and finally adds it as a child of the ``Main`` node:
|
||||
{
|
||||
Child = new Node();
|
||||
Child.Name = "Child";
|
||||
Child.Script = (Script)ResourceLoader.Load("child.gd");
|
||||
Child.Script = ResourceLoader.Load<Script>("child.gd");
|
||||
Child.Owner = this;
|
||||
AddChild(Child);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ The content of a scene helps to define:
|
||||
- What signal connections they have with each other
|
||||
|
||||
Why is any of this important to scene organization? Because instances of scenes *are* objects. As a
|
||||
result, many Object-Oriented principles that apply to written code also apply to scenes: single
|
||||
result, many object-oriented principles that apply to written code also apply to scenes: single
|
||||
responsibility, encapsulation, and others.
|
||||
|
||||
The scene is *always an extension of the script attached to its root node*, so you can interpret it
|
||||
|
||||
Reference in New Issue
Block a user