123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // P31Unity.m
- // P31SharedTools
- //
- // Created by Mike Desaro on 9/12/13.
- // Copyright (c) 2013 prime31. All rights reserved.
- //
- #import "P31Unity.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- void UnitySendMessage( const char * className, const char * methodName, const char * param );
- #ifdef __cplusplus
- }
- #endif
- #if UNITY_VERSION < 500
- void UnityPause( bool pause );
- #else
- void UnityPause( int pause );
- #endif
- @implementation P31Unity
- + (void)unityPause:(NSNumber*)shouldPause
- {
- #if UNITY_VERSION < 500
- BOOL shouldPauseValue = [shouldPause boolValue];
- #else
- int shouldPauseValue = [shouldPause intValue];
- #endif
-
- UnityPause( shouldPauseValue );
- }
- @end
|