prime31
1/29/2015 - 7:01 PM

Unity 5 changes the pause parameter from bool to int so the UnityPause declaration must be changed to account for this. The below declaratio

Unity 5 changes the pause parameter from bool to int so the UnityPause declaration must be changed to account for this. The below declaration covers both Unity 4 and 5.

#if UNITY_VERSION < 500
void UnityPause( bool pause );
#else
void UnityPause( int pause );
#endif