// Update is called once per frame void Update() { if (!state.movementEnabled) { return; } if (Input.GetAxis("Vertical") > movementThreshold) { movement.move(Vector2.up); } if (Input.GetAxis("Vertical") < -movementThreshold) { movement.move(Vector2.down); } if (Input.GetAxis("Horizontal") > movementThreshold) { movement.move(Vector2.right); } if (Input.GetAxis("Horizontal") < -movementThreshold) { movement.move(Vector2.left); } if (Input.GetButtonDown("Submit")) { movement.interact(); } if (Input.GetButtonDown("Cancel")) { PauseMenuManager.pause(); } if (Input.GetButtonDown("RosterOpen")) { CharacterMenu.open(); } }