private void UpdateBools() { jumped = Input.GetButtonDown("Jump"); jetpacked = Input.GetButton("Jump") && jetpack.activeSelf; xMovement = Input.GetAxis("Horizontal"); zMovement = Input.GetAxis("Vertical"); moved = false; if (new Vector2(xMovement, zMovement) != Vector2.zero) { moved = true; } sprinted = Input.GetButton("Sprint") || Input.GetAxis("SprintController") > 0.0f; if (Input.GetButtonDown("Aim") && jetpack.activeSelf) { aimed = !aimed; animations.Aiming(aimed); } }