Exemplo n.º 1
0
    public void HandleInput()
    {
        // movement joystick
#if UNITY_EDITOR
        _input = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));
        //_input = _joystick.Direction;
#else
        _input = _joystick.Direction;
#endif
        InputDirection = MoveDirection.FromZero(_input);
    }