UnityAppController+UnityInterface.mm 318 B

12345678910111213141516171819
  1. #include "UnityAppController+UnityInterface.h"
  2. #include "UnityAppController+Rendering.h"
  3. @implementation UnityAppController (UnityInterface)
  4. - (BOOL)paused
  5. {
  6. return UnityIsPaused() ? YES : NO;
  7. }
  8. - (void)setPaused:(BOOL)pause
  9. {
  10. const int newPause = pause == YES ? 1 : 0;
  11. UnityPause(newPause);
  12. }
  13. @end