We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d678a9 commit 90f8e10Copy full SHA for 90f8e10
include/Util/GameObject.hpp
@@ -42,7 +42,7 @@ class GameObject {
42
43
void SetVisible(bool visible) { m_Visible = visible; }
44
45
- void AppendChild(std::shared_ptr<GameObject> child) {
+ void AddChild(std::shared_ptr<GameObject> child) {
46
m_Children.push_back(std::move(child));
47
}
48
src/App.cpp
@@ -17,7 +17,7 @@ void App::Start() {
17
"Giraffe");
18
gf->SetZIndex(m_Giraffe->GetZIndex() - 1);
19
gf->Start();
20
- m_Giraffe->AppendChild(gf);
+ m_Giraffe->AddChild(gf);
21
22
m_CurrentState = State::UPDATE;
23
0 commit comments