private void LocalInit()
        {
            this.timestamp      = Panel.TimeSinceStartupMs();
            this.triggerEventId = 0uL;
            ulong expr_1C = EventBase.s_NextEventId;

            EventBase.s_NextEventId = expr_1C + 1uL;
            this.eventId            = expr_1C;
            this.propagation        = EventBase.EventPropagation.None;
            PropagationPaths expr_39 = this.m_Path;

            if (expr_39 != null)
            {
                expr_39.Release();
            }
            this.m_Path     = null;
            this.leafTarget = null;
            this.target     = null;
            this.skipElements.Clear();
            this.isPropagationStopped          = false;
            this.isImmediatePropagationStopped = false;
            this.isDefaultPrevented            = false;
            this.propagationPhase      = PropagationPhase.None;
            this.originalMousePosition = Vector2.zero;
            this.m_CurrentTarget       = null;
            this.dispatch                   = false;
            this.stopDispatch               = false;
            this.propagateToIMGUI           = true;
            this.dispatched                 = false;
            this.processed                  = false;
            this.processedByFocusController = false;
            this.imguiEventIsValid          = false;
            this.pooled      = false;
            this.eventLogger = null;
        }
示例#2
0
        void LocalInit()
        {
            timestamp = (long)(Time.realtimeSinceStartup * 1000.0f);

            propagation = EventPropagation.None;

            m_Path?.Release();
            m_Path     = null;
            leafTarget = null;
            target     = null;

            skipElements.Clear();

            isPropagationStopped          = false;
            isImmediatePropagationStopped = false;
            isDefaultPrevented            = false;

            propagationPhase = PropagationPhase.None;

            originalMousePosition = Vector2.zero;
            m_CurrentTarget       = null;

            dispatch         = false;
            stopDispatch     = false;
            propagateToIMGUI = true;

            dispatched        = false;
            imguiEventIsValid = false;
            pooled            = false;
        }
示例#3
0
        void LocalInit()
        {
            timestamp = Panel.TimeSinceStartupMs();

            triggerEventId = 0;
            eventId        = s_NextEventId++;

            propagation = EventPropagation.None;

            m_Path?.Release();
            m_Path     = null;
            leafTarget = null;
            target     = null;

            skipElements.Clear();

            isPropagationStopped          = false;
            isImmediatePropagationStopped = false;
            isDefaultPrevented            = false;

            propagationPhase = PropagationPhase.None;

            originalMousePosition = Vector2.zero;
            m_CurrentTarget       = null;

            dispatch         = false;
            stopDispatch     = false;
            propagateToIMGUI = true;

            dispatched = false;
            processed  = false;
            processedByFocusController = false;
            imguiEventIsValid          = false;
            pooled = false;

#if UNITY_EDITOR
            eventLogger = null;
#endif
        }