This is driving me insane. I am trying to access the CCB root node so I can get the animation timeline using SpriteBuilder/Cocos2d
.
I have heroCharacter.m
that is the custom class of my animation CCNode.
I am importing it into bedroomScene.m
. using
CCNode *_heroContainer;
and in my view did load
//Import Hero Scene
CCNode *hero = [CCBReader loadAsScene:@"heros/panda"];
[_heroContainer addChild:hero];
When I run animationManager it is a null value.
CCBAnimationManager* animationManager = _heroContainer.userObject;
NSLog(@"AM: %@", animationManager);
Any suggestions?