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
Post a Comment