#pragma mark Reset Game |
// The game is played only using the accelerometer. The screen may go dark while playing because the player |
// won't touch the screen. This method allows the screensaver to be disabled during gameplay. |
-( void ) setScreenSaverEnabled:( bool )enabled |
{ |
#if KK_PLATFORM_IOS |
UIApplication *thisApp = [UIApplication sharedApplication]; |
thisApp.idleTimerDisabled = !enabled; |
#en |
by: 发表于:2017-10-13 10:12:12 顶(0) | 踩(0) 回复
??
回复评论