Graphics Reference
In-Depth Information
// take over the car with AI control
isAIControlled=true;
InitAI();
}
}
}
12.3.5 User Interface
The user interface for this game is a collection of gameObjects with GUIText and
GUITexture components attached. They are in the game scene (as gameObjects), refer-
enced and managed by the game controller.
hese are:
1. Final_Position—A gameObject with a GUIText component on it, displaying a
message that will be shown at the end of the game to inform the user of his/her
final race position.
2. in_1—A GUITexture containing a graphic showing the number 1, for the 3-2-1
countdown at the start of the race.
3. in_2—A GUITexture containing a graphic showing the number 2, for the 3-2-1
countdown.
4. in_3—A GUITexture containing a graphic showing the number 3, for the 3-2-1
countdown.
5. Text_Lap—A GUIText object positioned in the top left of the screen to show how
many laps the user's player has completed.
6. Text_Position—A GUIText object positioned in the top right of the screen to
show the current race position of the user's player.
7. WrongWay—A GUIText object positioned just up from the center of the screen.
Its gameObject will be made active whenever the user's vehicle is going the wrong
way around the track.
Search WWH ::




Custom Search