public override void CancelSearchEvent()
        {
            var cancelMessage  = new CancelFindingGame();
            var wrapperMessage = new WrapperMessage {
                CancelFindingGame = cancelMessage
            };

            ConnectionHandler.Instance.SendWebsocketMessage(wrapperMessage);
            Debug.Log("Cancel search");
        }
        /// <summary>
        /// Sends message to server to cancel matchmaking.
        /// </summary>
        public void CancelSearch()
        {
            var cancelMessage  = new CancelFindingGame();
            var wrapperMessage = new WrapperMessage
            {
                CancelFindingGame = cancelMessage
            };

            if (ConnectionHandler.Instance.IsLogged())
            {
                ConnectionHandler.Instance.SendWebsocketMessage(wrapperMessage);
            }
        }