Example #1
0
    void FixedUpdate()
    {
        if (_yes.CheckGesture(_cameraToMeasure.transform.rotation.x, _deltaThreshold, _timeThreshold, _gestureAmountThreshold))
        {
            SendGestureEvent(_yes.GestureType);
        }

        if (_no.CheckGesture(_cameraToMeasure.transform.rotation.y, _deltaThreshold, _timeThreshold, _gestureAmountThreshold))
        {
            SendGestureEvent(_no.GestureType);
        }
    }