Skip to content

Commit 0ccc25b

Browse files
authored
Update GKGameActivity.cs
1 parent edc34ad commit 0ccc25b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source

plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/GKGameActivity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ public class GKGameActivity : NSObject
3030
/// </remarks>
3131
public static event WantsToPlayHandler WantsToPlay;
3232

33+
#if !UNITY_EDITOR_WIN
3334
static GKGameActivity()
3435
{
3536
if (Availability.IsTypeAvailable<GKGameActivity>())
3637
{
3738
Interop.GKGameActivity_SetWantsToPlayCallback(OnWantsToPlay);
3839
}
3940
}
41+
#endif
4042

4143
#if IOS_19_BETA_1_WANTSTOPLAY_MAIN_THREAD_WORKAROUND
4244
// In iOS 19 beta 1, the wantsToPlay callback isn't dispatched on the main thread.

0 commit comments

Comments
 (0)