Пример #1
0
    public override void Update()
    {
        HandPositon position = GetHandPosition();

        if (position == HandPositon.None)
        {
            count = 0;
        }
        else
        {
            if (position != lastPositon)
            {
                count++;
            }
        }
        lastPositon = position;
    }
Пример #2
0
 public override void Reset()
 {
     count       = 0;
     lastPositon = HandPositon.None;
 }