void LogicComponent::finalize()
{
	OBB* box = (OBB*) this->gameObject->findComponent<OBB>();
	SphereCollider* sphere = (SphereCollider*) this->gameObject->findComponent<SphereCollider>();
	if(box != NULL)
		box->unregisterLogicComponent(this);
	if(sphere!=NULL)
		sphere->unregisterLogicComponent(this);

	LogicManager::removeLogicComponent(*this);

	logicFinalize();
}