public override void Update() { HandPositon position = GetHandPosition(); if (position == HandPositon.None) { count = 0; } else { if (position != lastPositon) { count++; } } lastPositon = position; }
public override void Reset() { count = 0; lastPositon = HandPositon.None; }