Graphics Reference
In-Depth Information
6. User Interface—The user interface for in-game will derive from the
BaseUIDataManager script from Chapter 4, which adds data management. The
main menu uses the main menu system outlined in Chapter 10.
7. Sound Controller—The sound controller script from Chapter 8.
8. Music Controller
13.4 Game Controller
The game controller script GameController_TB.cs looks like this:
using UnityEngine;
using System.Collections;
public class GameController_TB : BaseGameController
{
public string mainMenuSceneName = "menu_TB";
public int numberOfBattlers = 4;
public int gameTime= 120;
public Transform playerParent;
public Transform [] startPoints;
public Camera_Third_Person cameraScript;
[System.NonSerialized]
public GameObject playerGO1;
private CarController_TB thePlayerScript;
private CarController_TB focusPlayerScript;
private ArrayList playerList;
private ArrayList playerTransforms;
private float aSpeed;
public GUIText timerText;
public GUIText posText;
private bool isAhead;
private CarController_TB car2;
private int focusPlayerBattlePosition;
public GameObject count3;
public GameObject count2;
public GameObject count1;
public GUIText finalPositionText;
public GameObject [] playerPrefabList;
[System.NonSerialized]
public static GameController_TB Instance;
public Waypoints_Controller WaypointControllerForAI;
Search WWH ::




Custom Search