Cocos2d Swift 中的 CCActionCallBlock 用法

CCActionCallBlock usage in Cocos2d Swift

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

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

如何在Cocos2dSwift中使用CCActionCallBlock?

您需要使用:

var seq = CCActionSequence.actionWithArray(arr) as CCActionSequence