Exemplo n.º 1
0
        public void Update(AInputManager inputManager)
        {
            int count = m_Detectors.Count;

            for (int x = 0; x < count; ++x)
            {
                m_Detectors[x].Update(inputManager);
            }
        }
Exemplo n.º 2
0
 protected override bool OnUpdate(AInputManager inputManager)
 {
     if (!m_Fired)
     {
         m_Fired = true;
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
        protected override void OnReset(AInputManager inputManager)
        {
            base.OnReset(inputManager);

            m_PreviousTrigger = 0f;
            m_NextTrigger     = m_Intervals[0];
            CurrentInterval   = m_Intervals[0];
            m_IntervalIndex   = 0;
            Count             = 0;
        }
Exemplo n.º 4
0
        protected override bool OnUpdate(AInputManager inputManager)
        {
            base.OnUpdate(inputManager);

            if (!m_Detected && Duration >= Delay)
            {
                m_Detected = true;
                return(true);
            }
            return(false);
        }
Exemplo n.º 5
0
        protected override bool OnUpdate(AInputManager inputManager)
        {
            base.OnUpdate(inputManager);

            if (Duration >= m_NextTrigger)
            {
                UpdateInterval();
                return(true);
            }
            return(false);
        }
Exemplo n.º 6
0
        public override void Update(AInputManager inputManager)
        {
            m_Triggered = DefaultState;
            int count = m_Detectors.Count;

            for (int x = 0; x < count; ++x)
            {
                ADetector detector = m_Detectors[x];
                detector.Update(inputManager);
                m_Triggered = IsTriggered(m_Triggered, detector.Triggered);
            }
        }
Exemplo n.º 7
0
 public override bool IsValid(AInputManager inputManager)
 {
     return(inputManager.Keyboard.Get(m_KeyCode).IsDown());
 }
Exemplo n.º 8
0
 protected override void OnReset(AInputManager inputManager)
 {
     base.OnReset(inputManager);
     m_Detected = false;
 }
Exemplo n.º 9
0
 protected override void OnReset(AInputManager inputManager)
 {
     m_Fired = false;
 }
Exemplo n.º 10
0
 protected override void OnReset(AInputManager inputManager)
 {
     Duration = 0f;
 }
Exemplo n.º 11
0
 protected override bool OnUpdate(AInputManager inputManager)
 {
     Duration += inputManager.DeltaTime;
     return(true);
 }