// 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>(); }