void Close() { Unity.Console.DebugLog("Client::Close() Close client"); CloseWebSocket(); if (SendFromThread) { sendingQueue.Clear(); } if (!ConnectionClosed.IsNull()) { ConnectionClosed(this); } }