好吧,我有一个带有几个CCB文件的角色,每个部分都有一些动画,所以我想知道如何访问每个文件,因为使用getChildByName
或者如果我实现了它,我就是只收到消息:CCBReader: Couldn't find member variable
。
结构是:
-Scene
--Character / catarinaCuerpo.ccb / _catarina with Doc root var
---Head / catarinaCabeza.ccb / _catarinaCabeza with Doc root var
----Eyes / catarinaOjo.ccb / _catarinaOjo with Doc root var / the name of the timeline that I want to access is "parpadeo"
---Wings / catarinaAla.ccb / _catarinaAla with Doc root var / the name of the timeline that I want to access is "aleteo"
那么,使用以下方法访问这两个动画的方法是什么:
CCBAnimationManager* animationManagerSomething = someNode.userObject
[animationManagerSomething runAnimationsForSequenceNamed:@"animationName"];