public GestureRequirementData(GestureRequirement a_Requirement) { m_Requirement = a_Requirement; m_FloatValue = 0.0f; m_BoolValue = false; m_FingerValue = EFinger.eThumb; m_DirectionValue = EDirection.eOutwards; m_HandAxisValue = EHandAxis.ePalmDirection; }
public void AddRequirement(EHand Hand, GestureRequirement Requirement) { if (Hand == EHand.eRightHand) { RightHandRequirements.Add(new GestureRequirementData(Requirement)); } else { LeftHandRequirements.Add(new GestureRequirementData(Requirement)); } }
public void RemoveRequirement(EHand Hand, GestureRequirement Requirement) { if (Hand == EHand.eRightHand) { foreach (GestureRequirementData item in RightHandRequirements) { if (item.m_Requirement == Requirement) { RightHandRequirements.Remove(item); } } } else { foreach (GestureRequirementData item in LeftHandRequirements) { if (item.m_Requirement == Requirement) { LeftHandRequirements.Remove(item); return; } } } }
void RemoveItem(GestureRequirement Gesture, EHand Hand) { TargetGesture.RemoveRequirement(Hand, Gesture); }