[self goToStage:currentStage];
[actor deathAnimation];
我有这两种方法。我想按顺序一一称呼。当一个完成后第二个开始。
//this method used in nsobject subclass
-(void)deathAnimation {
//Play death animation
}
//this method in cclayer subclass
-(void)goToStage:(int)stage {
//changing scene
}
在我想按顺序调用的特定事件的刻度函数中
我使用以下代码,但它不起作用
[CCSequence actions:[CCCallFunc actionWithTarget:actor selector:@selector(deathAnimation)], [CCDelayTime actionWithDuration:4.0], [CCCallFuncN actionWithTarget:self selector:@selector(goToStage:)], nil];
Now what i do? Please tell me.. Is there something wrong?