Cocos2d Swift中的CCActionCallBlock用法

Cocos2d Swift中的CCActionCallBlock用法,swift,cocos2d-iphone,cocos2d-swift,Swift,Cocos2d Iphone,Cocos2d Swift,我使用了下面的cocos2d swift代码,给出了1个错误。见下图 var calBck = CCActionCallBlock.actionWithBlock({ self.showGlassEffect() }) as CCActionCallBlock var seq = CCActionSequence.actions(move, delay, calBck, nil) as CCActionSequence 如何在Cocos2d

我使用了下面的cocos2d swift代码,给出了1个错误。见下图

var calBck  = CCActionCallBlock.actionWithBlock({
                self.showGlassEffect()
        }) as CCActionCallBlock
var seq = CCActionSequence.actions(move, delay, calBck, nil) as CCActionSequence

如何在Cocos2d Swift中使用CCActionCallBlock?

您需要使用:

var seq = CCActionSequence.actionWithArray(arr) as CCActionSequence