Swift - SKSprite Kit - Change Gamescene Variables from FileBrowser Closure
问题 I am working on an application that uses the 'FileBrowser' CocoaPod to load files in a simulator (using the SKSprites Physics Engine) I have a function in my GameViewController that creates a 'FileBrowser' instance, then allows the user to set it's 'didSelectFile' closure like so: let file = FileBrowser() present(file, animated: true, completion: nil) fileBrowser.didSelectFile = { (file: FBFile) -> Void in print(file.displayName)} This enables me to trigger that small bit of code in the