当玩家按 Home键游戏进入后台,我们需要暂停游戏,之后再返回继续游戏。
在AppDelegate::applicationDidEnterBackground中调用 CCDirector::sharedDirector()->pause()暂停游戏。
在AppDelegate::applicationWillEnterForground中即便不调用CCDirector::sharedDirector()->resume(),游戏却并未处理暂停状态而是继续运行,就算在AppDelegate::applicationWillEnterForground中调用了CCDirector::sharedDirector()->pause()依然会继续运行。何解?
楼主问题解决了吗,也遇到这种问题