Swift 是否可以在非';这不是一场恶作剧吗?

Swift 是否可以在非';这不是一场恶作剧吗?,swift,sprite-kit,sequence,skaction,sktexture,Swift,Sprite Kit,Sequence,Skaction,Sktexture,我有这个动作顺序: func move(){ let recursive = SKAction.sequence([ SKAction.moveByX(frame.size.width/2.8, y: 0, duration: NSTimeInterval(randomNumber())), SKAction.moveByX(-frame.size.width/2.8, y: 0, duration: NSTimeInterval(randomN

我有这个动作顺序:

    func move(){

    let recursive = SKAction.sequence([
        SKAction.moveByX(frame.size.width/2.8, y: 0, duration: NSTimeInterval(randomNumber())),
        SKAction.moveByX(-frame.size.width/2.8, y: 0, duration: NSTimeInterval(randomNumber())),
        SKAction.runBlock({self.move()})])
        doc.runAction(recursive, withKey: "move")
}
当下面这部分运行时,我想更改节点的纹理属性,但我不知道如何将其添加到SKAction序列中

SKAction.moveByX(frame.size.width/2.8, y: 0, duration: NSTimeInterval(randomNumber()))

您可以添加另一个runBlock调用吗

SKAction.runBlock(
{ 
      //change the texture and whatever else you need here...
      doc.texture = someNewTexture;
})

您可以添加另一个runBlock调用吗

SKAction.runBlock(
{ 
      //change the texture and whatever else you need here...
      doc.texture = someNewTexture;
})

您可以添加另一个runBlock调用吗

SKAction.runBlock(
{ 
      //change the texture and whatever else you need here...
      doc.texture = someNewTexture;
})

您可以添加另一个runBlock调用吗

SKAction.runBlock(
{ 
      //change the texture and whatever else you need here...
      doc.texture = someNewTexture;
})