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

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

	}