mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-06-02 14:11:11 +08:00
AppBase、device test ok.
This commit is contained in:
@@ -94,10 +94,12 @@ bool AppDelegate::applicationDidFinishLaunching()
|
||||
void AppDelegate::applicationDidEnterBackground()
|
||||
{
|
||||
Director::getInstance()->stopAnimation();
|
||||
Director::getInstance()->getEventDispatcher()->dispatchCustomEvent("APP_ENTER_BACKGROUND_EVENT");
|
||||
}
|
||||
|
||||
// this function will be called when the app is active again
|
||||
void AppDelegate::applicationWillEnterForeground()
|
||||
{
|
||||
Director::getInstance()->startAnimation();
|
||||
Director::getInstance()->getEventDispatcher()->dispatchCustomEvent("APP_ENTER_FOREGROUND_EVENT");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user