Swift wait for action. wait(forDuration: 1) let addNodeAction = SKAction.