Unity网络连接之Socket(基于UnityWebSocket插件)
Unity使用Socket来接入网络也是较为常见的。 private void ConnectWeb() { moveAgvData = MoveAGVData.CreateInstance(); WebSocketState state = socket == null ? WebSocketState.Closed : socket.ReadyState; socket = new WebSocket(url); socke