Пример #1
0
        private void Update()
        {
            if (m_isInputLocked)
            {
                return;
            }

            var horizontalInput = Input.GetAxis("Horizontal");
            var verticalInput   = Input.GetAxis("Vertical");

            var inputVector = new Vector2(verticalInput, horizontalInput);

            m_inputService.AddMovingInput(inputVector);
            m_inputService.AddLookingInput(Input.mousePosition);
        }