bool CCBReader::init() { // Setup action manager CCBAnimationManager *pActionManager = new CCBAnimationManager(); setAnimationManager(pActionManager); pActionManager->release(); // Setup resolution scale and container size _animationManager->setRootContainerSize(Director::getInstance()->getWinSize()); return true; }
CCBReader::~CCBReader() { CC_SAFE_RELEASE_NULL(_owner); this->_nodeLoaderLibrary->release(); _ownerOutletNames.clear(); _ownerCallbackNames.clear(); // Clear string cache. this->_stringCache.clear(); setAnimationManager(nullptr); }