private void RotateRocket() { rigidBody.freezeRotation = true; setEulerAngleRotationXAndYTo(0, 0); if (RocketDirection.isRotatingLeft()) { RotateLeft(); } else if (RocketDirection.isRotatingRight()) { RotateRight(); } rigidBody.freezeRotation = false; }