I’m using Google play game services plugin in my game and using my own UI for quick matchmaking lobby. When i call PlayGamesPlatform.Instance.RealTime.LeaveRoom (); during opponent serach, I get no callbacks.
PlayGamesPlatform.Instance.RealTime.LeaveRoom ();
So, how to cancel matchmaking properly?
I found it:
Leaves the room. Call this method to leave the room after you have started room setup. Leaving the room is not an immediate operation – you must wait for RealTimeMultplayerListener.OnLeftRoom to be called. If you leave a room before setup is complete, you will get a call to RealTimeMultiplayerListener.OnRoomConnected with false parameter instead. If you attempt to leave a room that is shutting down or has shutdown already, you will immediately receive the RealTimeMultiplayerListener.OnLeftRoom callback.