Hello Everybody ,
I want to pause my game when user tap on pause button.
Below is sample code, to pause the game.
[[Director sharedDirector] pause] ;
By using above code the game will pause for for few minutes , but it can not pause for long time. Since after 10-15 min game will start automatically.I don't know how director resume the game. Is there limitation on director to pause the game?
Also I have implement the following functions in app Delegate when application goes ideal state.
-(void) applicationDidBecomeActive:(UIApplication *)application
{
[[Director sharedDirector] resume] ;
}
-(void) applicationWillResignActive:(UIApplication *)application
{
[[Director sharedDirector] pause] ;
}
please help me.
Thanks,
Pravin