This repository has been archived on 2026-05-06. You can view files and clone it, but cannot push or open issues/pull-requests.
caihong/web_xcode/Classes/UnityAppController+UnityInt...

20 lines
318 B
Plaintext

#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