예제 #1
0
 private void Update()
 {
     _dispatcher.IncomingData();
     if (socketError == SocketError.Success)
     {
         socketError = SocketError.NoData;
     }
     if (scoketClient != null && !scoketClient.Connected)
     {
         Debug.LogError("检测到客户端玩家断开连接");
         scoketClient = null;
     }
 }
예제 #2
0
 public void Update()
 {
     _dispatcher.IncomingData();
 }