internal static void InternalMultiplayerStatusCallback(GooglePlayGames.Native.Cwrapper.CommonErrorStatus.MultiplayerStatus status, IntPtr data) { Logger.d("InternalMultiplayerStatusCallback: " + status); Action <GooglePlayGames.Native.Cwrapper.CommonErrorStatus.MultiplayerStatus> action = Callbacks.IntPtrToTempCallback <Action <GooglePlayGames.Native.Cwrapper.CommonErrorStatus.MultiplayerStatus> >(data); try { action(status); } catch (Exception exception) { Logger.e("Error encountered executing InternalMultiplayerStatusCallback. Smothering to avoid passing exception into Native: " + exception); } }
internal static void InternalSendReliableMessageCallback(GooglePlayGames.Native.Cwrapper.CommonErrorStatus.MultiplayerStatus response, IntPtr data) { Logger.d("Entering internal callback for InternalSendReliableMessageCallback " + response); Action <GooglePlayGames.Native.Cwrapper.CommonErrorStatus.MultiplayerStatus> action = Callbacks.IntPtrToTempCallback <Action <GooglePlayGames.Native.Cwrapper.CommonErrorStatus.MultiplayerStatus> >(data); if (action != null) { try { action(response); } catch (Exception exception) { Logger.e("Error encountered executing InternalSendReliableMessageCallback. Smothering to avoid passing exception into Native: " + exception); } } }