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);
        }
Пример #2
0
 internal protected void Init(Hi5_Glove_Interaction_Hand hand,
                              Hi5_Glove_Interaction_State state,
                              Hi5_Glove_Decision decision)
 {
     Hand      = hand;
     mState    = state;
     mDecision = decision;
 }
Пример #3
0
 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;
 }