cocos2d-x 和cocos2d-xna的一些函数区别

关于actions里的参数问题
cocos2d-xna c#
CCAction action = CCSequence.actions( CCSpawn.actions( CCAnimate.actionWithAnimation(ani, false), CCMoveBy.actionWithDuration(0.28f,p), CCCallFuncND.actionWithTarget(this,onWalkDone,tag)) ); enemy.runAction(action);
cocos2d-x里是这样的(当然,它是用c++写的,我这里是用c#写的伪c++代码)
CCAction action = CCSequence.actions(
                CCSpawn.actions( CCAnimate.actionWithAnimation(ani, false),
                                 CCMoveBy.actionWithDuration(0.28f,p),null),
                                 CCCallFuncND.actionWithTarget(this,onWalkDone,tag),null
                                 );
            enemy.runAction(action);
多了两个null,但是在c#(cocos2d-xna)里是不报错的,运行后才报错!

  

posted @ 2012-08-05 22:42  Dieaz5  阅读(307)  评论(0编辑  收藏  举报