Example #1
0
 void Reset()
 {
     _handPoseConditions         = new List <HandPoseCondition>();
     HandPoseTypeToConditionDict = new Dictionary <HandPoseType, HandPoseCondition>();
     foreach (HandPoseType type in Enum.GetValues(typeof(HandPoseType)))
     {
         HandPoseCondition condition = new HandPoseCondition(type);
         _handPoseConditions.Add(condition);
         HandPoseTypeToConditionDict.Add(type, condition);
     }
 }
Example #2
0
        private void Init()
        {
            HandPoseTypeToConditionDict = new Dictionary <HandPoseType, HandPoseCondition>();
            int n = _handPoseConditions.Count;

            for (int i = 0; i < n; i++)
            {
                HandPoseCondition condition = _handPoseConditions[i];
                HandPoseType      type      = condition.HandPoseType;
                HandPoseTypeToConditionDict.Add(type, condition);
            }
        }