Пример #1
0
 public void Begin(Node start, Node end, IPathTracker tracker)
 {
     m_Start      = start;
     m_End        = end;
     m_Path       = m_Graph.GetShortestPath(m_Start, m_End);
     _pathTracker = tracker;
     Follow(m_Path);
 }
Пример #2
0
        public GestureParser(IPathTracker pathTracker, IGestureIntentFinder intentFinder)
        {
            PathTracker = pathTracker;
            IntentFinder = intentFinder;

            MaxGestureSteps = 12;

            PathTracker.BeforePathStart += PathTrackerOnBeforePathStart;
            PathTracker.PathStart += PathTrackerOnPathStart;
            PathTracker.PathEnd += PathTrackerOnPathEnd;
            PathTracker.EffectivePathGrow += PathTrackerOnEffectivePathGrow;
            PathTracker.PathModifier += PathTrackerOnPathModifier;
            PathTracker.HotCornerTriggered += PathTracker_HotCornerTriggered;
        }
Пример #3
0
        public GestureParser(IPathTracker pathTracker, IGestureIntentFinder intentFinder)
        {
            PathTracker  = pathTracker;
            IntentFinder = intentFinder;

            MaxGestureSteps = 12;


            PathTracker.BeforePathStart   += PathTrackerOnBeforePathStart;
            PathTracker.PathStart         += PathTrackerOnPathStart;
            PathTracker.PathEnd           += PathTrackerOnPathEnd;
            PathTracker.EffectivePathGrow += PathTrackerOnEffectivePathGrow;
            PathTracker.PathModifier      += PathTrackerOnPathModifier;
        }
Пример #4
0
        public GestureParser(IPathTracker pathTracker, IGestureIntentFinder intentFinder)
        {
            PathTracker  = pathTracker;
            IntentFinder = intentFinder;

            MaxGestureSteps = 12;


            PathTracker.BeforePathStart    += PathTrackerOnBeforePathStart;
            PathTracker.PathStart          += PathTrackerOnPathStart;
            PathTracker.PathEnd            += PathTrackerOnPathEnd;
            PathTracker.EffectivePathGrow  += PathTrackerOnEffectivePathGrow;
            PathTracker.PathModifier       += PathTrackerOnPathModifier;
            PathTracker.HotCornerTriggered += PathTracker_HotCornerTriggered;
            PathTracker.EdgeRubbed         += PathTracker_EdgeRubbed;
        }