void Update() { SetFuelAmount(controller.getThrusterFuelAmount()); SetHealthAmount(player.getHealthPct()); SetAmmoAmount(weaponManager.GetCurrentWeapon().bullets); if (Input.GetKeyDown(KeyCode.Escape)) { TogglePauseMenu(); } if (Input.GetKeyDown(KeyCode.Tab)) { scoreBoard.SetActive(true); } else if (Input.GetKeyUp(KeyCode.Tab)) { scoreBoard.SetActive(false); } }