Пример #1
0
    private void ReadMovementInput()
    {
        var currentStateHash = _animator.GetCurrentAnimatorStateInfo(0).shortNameHash;

        if (_movementBlocked || currentStateHash == _serviceStartHash || currentStateHash == _serviceEndHash) // TODO ADD SERVICE BOOL INSTEAD?
        {
            _moveLeftRightValue = _moveUpDownValue = 0;
        }
        else
        {
            _moveLeftRightValue = _actionMapper.GetMoveHorizontal();
            _moveUpDownValue    = _actionMapper.GetMoveVertical();
        }
    }