From the look of your example, there are several things that might be going wrong:
You might be confusing CCLayer
with CC3Layer
. CC3Layer
is a subclass of CCLayer
that supports displaying a 3D scene. Be sure you are instantiating a CC3Layer
.
If you really are using a CC3Layer
and the CC3Scene
property (which is actually cc3Scene
) is returning an instance of CC3Scene
, then, as LearnCocos2D indicates, verify that the method you are invoking actually exists in the CC3Scene
class. If you provide the specific method name here, then I can provide further help.
If the someFunctionFromCC3Scene
is actually defined and implemented in your custom subclass, then you should cast the CC3Scene
instance to your custom subclass before invoking that method:
[((MyCC3Scene*)aCC3Layer.cc3Scene) someFunctionFromMyCC3Scene];
...Bill