uncomment the pause() and resume() method call in test-js

This commit is contained in:
andyque 2014-02-24 11:03:41 +08:00
parent a049ca5a1e
commit 8f8b990c85
1 changed files with 4 additions and 2 deletions

View File

@ -91,14 +91,16 @@ static AppDelegate s_sharedApplication;
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
cocos2d::Director::getInstance()->pause();
//We don't need to call this method any more. It will interupt user defined game pause&resume logic
// cocos2d::Director::getInstance()->pause();
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
cocos2d::Director::getInstance()->resume();
//We don't need to call this method any more. It will interupt user defined game pause&resume logic
// cocos2d::Director::getInstance()->resume();
}
- (void)applicationDidEnterBackground:(UIApplication *)application {