Esempio n. 1
0
        public void OnEnable()
        {
            if (inputActions == null)
            {
                inputActions = new PlayerControll();
                inputActions.PlayerMovement.Movement.performed += inputActions => movementInput = inputActions.ReadValue <Vector2>();
                inputActions.PlayerMovement.Camera.performed   += i => cameraInput = i.ReadValue <Vector2>();
            }

            inputActions.Enable();
        }