这让我发疯。我正在尝试访问 CCB 根节点,以便我可以使用SpriteBuilder/Cocos2d
.
我有heroCharacter.m
那是我的动画 CCNode 的自定义类。
我将它导入到bedroomScene.m
. 使用
CCNode *_heroContainer;
在我看来确实加载了
//Import Hero Scene
CCNode *hero = [CCBReader loadAsScene:@"heros/panda"];
[_heroContainer addChild:hero];
当我运行 animationManager 时,它是一个空值。
CCBAnimationManager* animationManager = _heroContainer.userObject;
NSLog(@"AM: %@", animationManager);
有什么建议么?