protected override void Start()
 {
     handCountState = StateList.Init ("JAE handCountState", JAX_NO_HANDS, JAX_HANDS);
       HandFacingInput.BoolEvent += FacingHandler;
       HandPumpToggle.BoolEvent += HandlePumpToggle;
       Subscribe ();
       frameEmitter.FrameEvent += FrameEventHandler;
       handCountState.StateChangedEvent += HandCountStateChangeHandler;
 }
예제 #2
0
        public void InitArmHUDState()
        {
            //		handController = GameObject.FindObjectOfType<HandController> () as HandController;
            //		LookAtTarget = GameObject.Find ("OVRCameraRig") as GameObject;

            if (!StateList.HasList (STATE_NAME_ARMHUD))
                InitArmHUDStateList ();
            ArmHUDState = new State (STATE_NAME_ARMHUD);
            ArmHUDState.StateChangedEvent += OnArmHUDStateChange;
            ArmHUDState.Change (ARMHUDSTATE_NOLEFTHAND);
        }
예제 #3
0
        void Start()
        {
            if (!TouchTracker)
                                TouchTracker = GetComponent<HandTouchTracker> ();

                        TouchTracker.HandleEnter += OnHandEnter;
                        TouchTracker.HandleLeave += OnHandLeave;

                        HandContactState = StateList.Init ("TouchMap HandContactState", HCS_HAS_HAND, HCS_NOHAND);
                        HandContactState.Change (HCS_NOHAND);
                        HandContactState.StateChangedEvent += HandleHandContactStateChangedEvent;

                        TouchingHand.HandEvent += HandleHandEvent;
                        CursorFirstPosition = Cursor.transform.position;
                        handlerSet = TryCPF ();
        }
예제 #4
0
        // Use this for initialization
        void Start()
        {
            FoundState = StateList.Init (FOUND_STATE_NAME, FOUND_STATE_NO_ID, FOUND_STATE_NOT_FOUND, FOUND_STATE_FOUND, FOUND_STATE_HAND_INVALID);
                        FoundState.Change (!NoHandId ? FOUND_STATE_NOT_FOUND : FOUND_STATE_NO_ID);

                        if (handIdInput)
                                handIdInput.IntEvent += HandleIntEvent;

                        FoundState.StateChangedEvent += HandleStateChangedEvent;
        }
예제 #5
0
        void InitState()
        {
            activeness = StateList.Init ("JB Activeness", Activeness_Inactive, Activeness_Active);
                        gesture = StateList.Init ("JB Gesture", Gesture_NoHand, Gesture_Fist, Gesture_Open);

                        activeness.StateChangedEvent += ActivenessChanged;
                        gesture.StateChangedEvent += GestureChanged;
        }