Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void) playManyActionsOneByOne
- {
- // create some actions and add them to the
- // mutable array m_actionsContainer
- [self runNextActionInArray];
- }
- - (void) runNexActionInArray
- {
- if( [m_actionsContainer count > 0] )
- {
- id nextAction = [m_actionsContainer objectAtIndex:0];
- id callback = [CCCallFunc actionWithTarget: self selector: @selector(runNextActionInArray)];
- id sequence = [CCSequence actionOne: nextActon two: callback];
- [neededNode runAction: sequence];
- [m_actionsContainer removeObjectAtIndex:0];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement