Exemple #1
0
 private void Start()
 {
     // handle input
     inputActions = new InputActions();
     inputActions.Enable();
     inputActions.Player.Move.performed   += ctx => SetVelocity(ctx.ReadValue <float>());
     inputActions.Player.Jump.performed   += ctx => Jump();
     inputActions.Player.Change.performed += ctx => changeManager.Change();
 }