AnimationController * AnimatedEntity::LoadAnimationFromFile(std::string fileName,std::string id)
{
	AnimationHandler handler = resMgr->GetAnimationFromFile(fileName,id);
	AnimationController controller;
	controller.Init(skeletonHandler.Get(),handler);

	animations.push_back(controller);
	return &animations[animations.size()-1];
}