protected void init(Hi5_Glove_Interaction_Hand hand) { mJudgeMent = new Hi5_Object_JudgeMent(); mDecision = new Hi5_Glove_Decision(mJudgeMent, hand, this); Hi5_Glove_State_Pinch pinchState = new Hi5_Glove_State_Pinch(); pinchState.Init(hand, this, mDecision); Hi5_Glove_State_Release releaseState = new Hi5_Glove_State_Release(); releaseState.Init(hand, this, mDecision); Hi5_Glove_State_Pinch2 pinch2 = new Hi5_Glove_State_Pinch2(); pinch2.Init(hand, this, mDecision); Hi5_Glove_State_Clap clap = new Hi5_Glove_State_Clap(); clap.Init(hand, this, mDecision); Hi5_Glove_State_Lift Lift = new Hi5_Glove_State_Lift(); Lift.Init(hand, this, mDecision); mDicState.Add(E_Hand_State.EClap, clap); mDicState.Add(E_Hand_State.ELift, Lift); mDicState.Add(E_Hand_State.EPinch, pinchState); mDicState.Add(E_Hand_State.ERelease, releaseState); mDicState.Add(E_Hand_State.EPinch2, pinch2); mCurrentState = releaseState; mJudgeMent.mStateManager = this; mJudgeMent.Hand = hand; }
internal protected void Init(Hi5_Glove_Interaction_Hand hand, Hi5_Glove_Interaction_State state, Hi5_Glove_Decision decision) { Hand = hand; mState = state; mDecision = decision; }