private void Update() { actor.movement = new Vector2(Input.GetAxis(horizontalAxis), Input.GetAxis(verticalAxis)); if (Input.GetButtonDown(sprint)) { actor.Sprint(); } else if (Input.GetButtonDown(attack)) { actor.Attack(); } else if (Input.GetButtonDown(pickup)) { actor.Pickup(); } }