private void OnKeyReleased(EventData_UI eventData)
 {
     if (fireKeys.Contains(eventData.TheKey))
     {
         FireKeyReleased();
     }
 }
        private void OnKeyClicked(EventData_UI eventData)
        {
            KeyCode theKey = eventData.TheKey;

            if (theKey == increaseKey)
            {
                ModFramelength(1);
            }
            else if (theKey == decreaseKey)
            {
                ModFramelength(-1);
            }
        }
Exemplo n.º 3
0
        private void OnInteractEvent(EventData_UI theData)
        {
            if (theData.TheKey != interactKey)
            {
                return;
            }
            if (requireMouseOver && _curMouseOvers <= 0)
            {
                return;
            }

            //TODO: Eventually, send whoever pressed the interaction button instead of null
            TriggerBehaviourList(behavioursOnInteract, null);
        }
        private void OnKeyClicked(EventData_UI eventData)
        {
            if (!fireKeys.Contains(eventData.TheKey))
            {
                return;
            }

            FireKeyClicked();

            if (!_keysClickedThisFrame.Contains(eventData.TheKey))
            {
                _keysClickedThisFrame.Add(eventData.TheKey);
            }
        }
Exemplo n.º 5
0
        private void OnInteractEvent(EventData_UI theData)
        {
            if (AreInteractBehavioursEmpty)
            {
                return;
            }

            if (behavioursOnInteract.Count == 0)
            {
                return;
            }

            if (theData.TheKey != interactKey)
            {
                return;
            }
            if (_currentlyInTrigger.Count < requiredToInteract)
            {
                return;
            }

            //TODO: Eventually, send whoever pressed the interaction button instead of null
            TriggerBehaviourList(behavioursOnInteract, null);
        }
 private void OnMouseReleased(EventData_UI data)
 {
     _isMousePressed = false;
 }
 private void OnMouseClicked(EventData_UI data)
 {
     _isMousePressed = true;
     AttemptFiring();
 }