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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -