コード例 #1
0
 public void Connect()
 {
     _queueEvents          = new QueueEvents();
     _webSocket            = new WebSocket($"ws://{_host}:{_serverPort}/Javity");
     _webSocket.OnMessage += OnMessage;
     _webSocket.OnClose   += OnClose;
     _webSocket.Connect();
 }
コード例 #2
0
            protected override IEnumerator RoutineUpdate()
            {
                Schedule(_event);

                while (_current == _event || QueueEvents.Contains(_event))
                {
                    yield return(null);
                }
            }