Graphics Reference
In-Depth Information
GETR EADY_GR APHIC
in_1
in_2
in_3
Te x t _ L a p
Te x t _ Po s it ion
WrongWay
Way poi nts
All of the transforms used as waypoints for path finding, progress checking,
etc.
As with the other example games in this topic, players and enemies are dynamically
created by the game controller when the game starts. References to several prefabs and
gameObjects are set in the Unity editor Inspector window. These are
Game controller Unity editor Inspector window references:
Explosion Prefab—A particle effect for explosions.
Player Parent—An empty gameObject that will act as a parent object for play-
ers. This is just to keep things neat—when the game is running, if for any rea-
son you need to look at a particular player you can easily access it by expanding
the player parent object.
Start Points—These are gameObjects in the scene that the game controller can
use to get position and rotation information from, for use with positioning the
cars at the start of the game.
Camera Script—This refers to the camera, which has an instance of the script
Camera_Third_Person.cs attached to it. The game controller requires this ref-
erence to be set up to communicate with the camera.
Lap Text—A gameObject with the GUIText component attached, which ren-
ders the user's current lap to the screen.
Pos Text—A gameObject with the GUITexture component attached, which
renders the user's current position in the race.
Count 3—A gameObject used to display the number 3 during the 3-2-1 count-
down at the start of the race.
Count 2—A gameObject used to display the number 2 at the start of the race.
Search WWH ::




Custom Search