run(_:)
Creates an action that executes a block.
Declaration
class func run(_ block: @escaping () -> Void) -> SKActionParameters
- block:
The block to run.
Return Value
A new action object.
Discussion
When the action executes, the block is called. This action takes place instantaneously.
This action is not reversible; the reverse action executes the same block.