我需要使用各種參數在cosos2D中安排一個事件,我嘗試過在網上搜索,但無法從中獲得任何解決方案。我可以使用在cocos2D中有多個參數的計劃事件
[self schedule:@selector(move :) interval:0.3];
,但我應該如何將參數傳遞給它喜歡:
[self schedule:@selector(move:withPoint:) interval:0.3];
來訪問該功能。
-(void)move:(id)object withPoint:(CGPoint)point{ }
你也可以創建一個CGPoint實例變量。 – LearnCocos2D 2012-07-13 11:30:29
@ LearnCocos2D好點,我會更新我的答案。 – 2012-07-13 11:34:07