Preview:
// at top
using UnityEngine.InputSystem;

// update

private float strafeAmount = 0.0f;
void Update(){
  playerRb.AddForce(transform.left * strafeAmount * speed * Time.deltaTime); 
}

// Send Message events

// 1d axis event
private void OnStrafe(InputValue value){
  strafeAmount = value.Get<float>();
}

// button event
private void OnFire(){
  shoveInput = value.Get<float>();
}

downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter