void Update() { mover.Direction = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical")); if (Input.GetKeyDown(Sprint)) { mover.UpSpeed(); } if (Input.GetKeyUp(Sprint)) { mover.DownSpeed(); } }