Fix errors in What are Godot classes

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
This commit is contained in:
Nathan Lovato
2020-09-06 14:15:30 -06:00
committed by GitHub
parent fe959a18a0
commit de9d9bf06a
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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