예제 #1
0
        // Use this for initialization
        #region loop
        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();
        }
예제 #2
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 ();
        }