void UpdateGesture() { VRTRIXGloveGesture ges = mAgent.GetGesture(); if (ges == preGesture) { fulfilCount = 1; return; } if (ges == afterGesture) { if (fulfilCount == 1) { fulfilCount = 0; OnCommand(); return; } } if (ges != VRTRIXGloveGesture.BUTTONNONE) { fulfilCount = 0; } }
public VRTRIXGloveGesture GetGesture() { if (mGloveAgent.handType == HANDTYPE.NONE || mGloveAgent == null) { return(VRTRIXGloveGesture.BUTTONNONE); } else { return(mGloveAgent.GetGesture()); } }