public void HandleEvents()
        {
            if (m_PlayHeadCursor == null)
            {
                m_PlayHeadCursor              = new TimeCursorManipulator(AnimationWindowStyles.playHead);
                m_PlayHeadCursor.onStartDrag += (manipulator, evt) => OnDragPlayHead(evt);
                m_PlayHeadCursor.onDrag      += (manipulator, evt) => OnDragPlayHead(evt);
            }

            m_PlayHeadCursor.HandleEvents();
        }
Esempio n. 2
0
        public void HandleEvents()
        {
            if (m_PlayHeadCursor == null)
            {
                m_PlayHeadCursor = new TimeCursorManipulator(AnimationWindowStyles.playHead)
                {
                    drawHead = false
                };
                m_PlayHeadCursor.headColor    = PlayHeadColor;
                m_PlayHeadCursor.lineColor    = PlayHeadColor;
                m_PlayHeadCursor.alignment    = TimeCursorManipulator.Alignment.Left;
                m_PlayHeadCursor.onStartDrag += (manipulator, evt) => OnDragPlayHead(evt);
                m_PlayHeadCursor.onDrag      += (manipulator, evt) => OnDragPlayHead(evt);
            }

            m_PlayHeadCursor.HandleEvents();
        }
        public void HandleEvents()
        {
            Initialize();

            m_PlayHeadCursor.HandleEvents();
        }