/// <summary>
    /// Returns the HandDataEvent, if it is not created yet it will be initialized together with the data receiver thread.
    /// </summary>
    /// <returns></returns>
    public static HandDataEvent getHandDataEvent()
    {
        if (receiveThread == null)
        {
            Debug.Log("Starting HandTrackingClient");
            done          = false;
            receiveThread = new Thread(Listen);
            receiveThread.IsBackground = true;
            receiveThread.Start();
            _handDataEvent = new HandDataEvent();
        }

        return(_handDataEvent);
    }
 // Destroys the HandDataEvent and the receiveThread.
 void OnDestroy()
 {
     done           = true;
     receiveThread  = null;
     _handDataEvent = null;
 }