void SceneGraph::Remove(GraphNode aGameObject) { if (aGameObject == nullptr || m_Top == nullptr) { return; } if (aGameObject->GetParent() == m_Top) { aGameObject->SetParent(nullptr); } }
void SceneGraph::Insert(GraphNode aGameObject) { if (aGameObject == nullptr || m_Top == nullptr) { return; } if (aGameObject->GetParent() == nullptr) { aGameObject->SetParent(m_Top); } }