LearnWithTouch/App/LearnWithTouch_ios/Classes/UnityAppController+UnityInt...

20 lines
318 B
Plaintext
Raw Permalink Normal View History

2019-07-01 14:33:21 +02:00
#include "UnityAppController+UnityInterface.h"
#include "UnityAppController+Rendering.h"
@implementation UnityAppController (UnityInterface)
- (BOOL)paused
{
return UnityIsPaused() ? YES : NO;
}
- (void)setPaused:(BOOL)pause
{
const int newPause = pause == YES ? 1 : 0;
UnityPause(newPause);
}
@end