/// <summary> /// Initializes the controller. You must call this after subscribing to real-time match events. /// </summary> public static void Init() { if (!_init) { if (GKLocalPlayer.InstancesRespondToSelector("registerListener:")) { LocalPlayerListener.instance.Register(); } else { GKMatchmaker.SharedMatchmaker().inviteHandler = _MatchInviteHandler; } _init = true; } }
/// <summary> /// Initializes the controller. You must call this after subscribing to turn-based match events. /// </summary> public static void Init() { if (!_init) { if (GKLocalPlayer.InstancesRespondToSelector("registerListener:")) { LocalPlayerListener.instance.Register(); } else { GKTurnBasedEventHandler.SharedTurnBasedEventHandler().Delegate = TurnBasedEventHandlerDelegate.instance; } _init = true; } }