I followed below tutorials to integrate unity with iOS application
1. https://github.com/blitzagency/ios-unity5
2. https://www.agnosticdev.com/blog-entry/swift/integrating-unity-and-vuforia-ios-swift-project?page=1
I try to stop unity by following code from iOS
func stopUnity() {
if isUnityRunning {
isUnityRunning = false
currentUnityController!.applicationWillResignActive(application!)
}
}
but when i try to start unity again by following code
func startUnity() {
if !isUnityRunning {
isUnityRunning = true
currentUnityController!.applicationDidBecomeActive(application!)
}
}
It only resume the unity game. I'd to restart the unity game instead of resuming.