Skip to content

Commit 08e190c

Browse files
reverted removal of DOTNET_FX check in editor.
1 parent b24a1fb commit 08e190c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/HoloToolkit/Input/Tests/Scripts/MicStreamDemo.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ private static void CheckForErrorOnCall(int returnCode)
122122
MicStream.CheckForErrorOnCall(returnCode);
123123
}
124124

125-
// Deal with all the ways that we could suspend our program in as few lines as possible
125+
#if DOTNET_FX
126+
// On device, deal with all the ways that we could suspend our program in as few lines as possible.
126127
private void OnApplicationPause(bool pause)
127128
{
128129
CheckForErrorOnCall(pause ? MicStream.MicPause() : MicStream.MicResume());
@@ -142,5 +143,6 @@ private void OnEnable()
142143
{
143144
OnApplicationPause(false);
144145
}
146+
#endif
145147
}
146148
}

0 commit comments

Comments
 (0)