internal static Hi5_Glove_Interaction_State CreateState(Hi5_Glove_Interaction_Hand hand) { Hi5_Glove_Interaction_State state = new Hi5_Glove_Interaction_State(); state.init(hand); return(state); }
internal protected void Init(Hi5_Glove_Interaction_Hand hand, Hi5_Glove_Interaction_State state, Hi5_Glove_Decision decision) { Hand = hand; mState = state; mDecision = decision; }
void Awake() { //mMessage = new Hi5_Glove_Interaction_Message(); AssignPNJoints(); mPalm = gameObject.GetComponentInChildren <Hi5_Glove_Collider_Palm>(); mPalm.mHand = this; mHandFlyCollider = gameObject.GetComponentInChildren <Hi5_Glove_Hand_Fly_Collider>(); mHandCollider = gameObject.GetComponentInChildren <Hi5_Glove_Hand_Collider>(); //mPalm.SetHi5Message(mMessage); mState = Hi5_Glove_Interaction_State.CreateState(this); mPinchObjectId = -1; }
internal Hi5_Glove_Decision(Hi5_Object_JudgeMent judgement, Hi5_Glove_Interaction_Hand hand, Hi5_Glove_Interaction_State state) { mJudgeMent = judgement; mHand = hand; mState = state; }