Exemplo n.º 1
0
	void SceneGraph::Remove(GraphNode aGameObject)
	{
		if (aGameObject == nullptr || m_Top == nullptr)
		{
			return;
		}

		if (aGameObject->GetParent() == m_Top)
		{
			aGameObject->SetParent(nullptr);
		}
	}
Exemplo n.º 2
0
	void SceneGraph::Insert(GraphNode aGameObject)
	{
		if (aGameObject == nullptr || m_Top == nullptr)
		{
			return;
		}
		if (aGameObject->GetParent() == nullptr)
		{
			aGameObject->SetParent(m_Top);
		}

	}