void NotifyLobbyMatchToClient(string sessionID, string ip, UInt16 port, Int32 roomNumber)
        {
            var notifyPkt = new LobbyMatchNtfPacket()
            {
                IP         = ip,
                Port       = port,
                RoomNumber = roomNumber
            };

            SendPacket(sessionID, (UInt16)CL_PACKET_ID.NTF_LOBBY_MATCH, notifyPkt.ToBytes());
        }
Ejemplo n.º 2
0
        static void ProcessNotifyLobbyMatch(Byte[] data)
        {
            try
            {
                var response = new LobbyMatchNtfPacket();
                response.Decode(data);

                Debug.Log($"매칭알림 패킷 도착: GameServerIP:{response.GameServerIP}, Port:{response.GameServerPort}");

                if (LobbySceneManager.FillMatchInfo(response.GameServerIP, response.GameServerPort, response.RoomNumber) == true)
                {
                    LobbySceneManager.isMatchingNtfArrived = true;
                }
            }
            catch (Exception e)
            {
                Debug.LogError(e.ToString());
            }
        }