in AppController.mm (iOS folder) there are 2 methods that call pause() & resume() it says they are no longer needed but im confused why they are no longer needed I looked at the source code and couldn’t really understand what was going on
- (void)applicationWillResignActive:(UIApplication *)application {
// We don't need to call this method any more. It will interrupt user defined game pause&resume logic
/* cocos2d::Director::getInstance()->pause(); */
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// We don't need to call this method any more. It will interrupt user defined game pause&resume logic
/* cocos2d::Director::getInstance()->resume(); */
}
also in AppDelegate.cpp these 2 methods are called, is stopAnimation & startAnimation related to pause() & resume() and thats why they are not needed and commented out ? thanks if anyone could clarify whats going on
void AppDelegate::applicationDidEnterBackground() {
Director::getInstance()->stopAnimation();
}
void AppDelegate::applicationWillEnterForeground() {
Director::getInstance()->startAnimation();
}