Player Movement script with Unity new Input system
ng UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float speed = 5f; public float jumpForce = 10f; public float gravity = 20f; public float airControl = 0.5f; public float airControlMax = 1f; public float airControlMin = 0.5f; public float airControlSpeed = 0