cocos2dx tiledmap 删除对象

bool InGame::CollisionDetection(TMXObjectGroup* group)
{
	ValueVector& vectorGroup = group->getObjects();  
	
	std::vector<Value>::iterator iter ;

	for (iter = vectorGroup.begin();iter!=vectorGroup.end();iter++)  
	{  
		iter =vectorGroup.erase(iter);
	}
}

你可能感兴趣的:(cocos2dx tiledmap 删除对象)