我创建了一个动作
-(void) ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event
就像这样:
self.moveAction = [CCSequence actions:
[CCMoveTo actionWithDuration:moveDuration position:touchLocation],
[CCCallFunc actionWithTarget:self selector:@selector(guyMoveEnded)],
nil
];
但现在,我想通过以下方式自动调用以下方法@selector
:
-(void)guyMoveEnded:(BOOL)flag AndWhere:(CGPoint)where Andtime:(float)time{
//do something...
}
我该怎么做?请帮助我,我对选择器感到困惑。
谢谢!