我使用了下面的cocos2d-swift代码,给出了1个错误。见下图。
var calBck = CCActionCallBlock.actionWithBlock({
self.showGlassEffect()
}) as CCActionCallBlock
var seq = CCActionSequence.actions(move, delay, calBck, nil) as CCActionSequence
如何在Cocos2d Swift中使用CCActionCallBlock?
答案 0 :(得分:2)
您需要使用:
var seq = CCActionSequence.actionWithArray(arr) as CCActionSequence