{{{ #!Markdown # CarMain Main script for controlling the scene. The controllable vehicles and the logic of the scene are managed here. - Reads, manages and applies all user input (keyboard, joystick, etc). - Allows vehicle selection and driving. - Controls the camera modes. - Configures the camera and shadows for quality modes (F12). - Shows the vehicle's dashboard (speed, driving aids, etc). - Shows the help window (H). - Shows the vehicle's telemetry window (B) if a [CarTelemetry](wiki:CarTelemetry) script is available in the same GameObject. - Offers the slow time feature. This script is added to a _Main_ GameObject intended to hold the control scripts for the scene. __Cars__: references to the controllable vehicles in the scene. They must contain a [CarControl](wiki:CarControl) script. User can switch the active car with the PageUp / PageDown keys. __startupCar__: car of the list that will be selected on startup. __MainCamera__: reference to the main camera of the scene. It must contain a [CameraControl](wiki:CameraControl) script. __MainLight__: reference to the main light of the scene. The script configures its shadows for offering the low quality mode (F12). __reverseRequiresStop__: Configures the stop and reverse behavior. If enabled, car is required to completely stop, then releasing and pressing the brake key again in order to go reverse. __PayLoad__: reference to the object used as payload (the gray box in the [live demo][], key E for moving. It's just for fun in the demo). __slowTime__: time scale used for the slow time mode (T). __showHelp__: help window enabled or disabled (H). __guiEnabled__: vehicle's dashboard enabled or disabled. __BigTextStyle, TextStyle, BoxStyle, guiSkin__: GUIStyle and GUISkin objects for displaying the dashboard. [live demo]: http://www.edy.es/dev/vehicle-physics/live-demo }}}