ios - call function in Appdelegate.swift -


i have function in gamescene.swift:

func pausegame() {      scene!.view!.paused = true     println("pause")     updatescoretimer.invalidate()  } 

now want call appdelegate.swift don't know insert "<#gamescene#>"

gamescene.pausegame(<#gamescene#>)

well if appdelegate.swift instantiates scene, call method on scene instance app delegate. don't see why want pause game appdelegate. wanting call when app launches?


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -