Cocos2d Swift中的CCActionCallBlock用法

时间:2015-03-28 13:29:30

标签: 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

enter image description here

如何在Cocos2d Swift中使用CCActionCallBlock?

1 个答案:

答案 0 :(得分:2)

您需要使用:

var seq = CCActionSequence.actionWithArray(arr) as CCActionSequence