private void OnClientError(NetworkMessage netMsg) { Debug.Log("Client error from Master"); }
// --------------- System handlers ----------------- private void OnClientConnect(NetworkMessage netMsg) { Debug.Log("Connected to server " + netMsg.conn.address); ClientIdentificationRequest(); }
private void OnClientDisconnect(NetworkMessage netMsg) { Debug.Log("Client Disconnected from Master"); }
public void SendGetRoomPlayerInfos() { SendMsg(RoomSingle.roomIP, NetworkConstent.UDPServerPort, NetworkMessage.GetBytes(new NetworkMessage(14, NetworkTools.GetLocalIP(), null))); }