Fix conditional compilation for Android.
This commit is contained in:
@@ -347,15 +347,19 @@ namespace Cryville.Crtr {
|
||||
forceSyncFrames = Settings.Default.ForceSyncFrames;
|
||||
Game.AudioClient.Start();
|
||||
inputProxy.UnlockTime();
|
||||
#if !UNITY_ANDROID || UNITY_EDITOR
|
||||
DiscordController.Instance.SetResume(cbus.Time);
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
Game.AudioClient.Pause();
|
||||
inputProxy.LockTime();
|
||||
#if !UNITY_ANDROID || UNITY_EDITOR
|
||||
DiscordController.Instance.SetPaused();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Load
|
||||
void Play() {
|
||||
|
@@ -56,7 +56,7 @@ namespace Cryville.Crtr {
|
||||
|
||||
unity::Input.simulateMouseWithTouches = false;
|
||||
var emptyObjectArray = new object[0];
|
||||
#if UNITY_ANDROID
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
InputManager.HandlerRegistries.Add(typeof(AndroidAccelerometerHandler), emptyObjectArray);
|
||||
InputManager.HandlerRegistries.Add(typeof(AndroidAccelerometerUncalibratedHandler), emptyObjectArray);
|
||||
InputManager.HandlerRegistries.Add(typeof(AndroidGameRotationVectorHandler), emptyObjectArray);
|
||||
|
Reference in New Issue
Block a user