private void Update() { if (gamePaused) { if (Input.GetKeyDown(KeyCode.Space)) { Time.timeScale = 1; gamePaused = false; } } switch (gravDir) { case 0: jump.DownJump(); MoveRight(); break; case 1: jump.LeftJump(); MoveUpwards(); break; case 2: jump.UpJump(); MoveRight(); break; case 3: jump.RightJump(); MoveUpwards(); break; } GravitySwapUpdate(); PulsePowerUp(); PowerUpReceived(); }