iRDS - Intelligent Race Driver System
V 2.1.0.5
|
Public Member Functions | |
Transform | GetGridPositions () |
Gets the grid positions. More... | |
void | RestartRaceAutoPositionCarsOnGrid () |
IRDSCarControllerAI | AddNewPlayerCar (Object car, IRDSOtherPlayers controls, string driverName) |
Add a new player car to the scene, the car is instantiated by this method on the next empty grid point More... | |
IRDSCarControllerAI | AddNewPlayerCar (IRDSCarControllerAI player, IRDSOtherPlayers controls, string driverName) |
Add a new player car to the scene, the car needs to be already instantiated More... | |
IRDSCarControllerAI | AddNewAICar (Object car, Color carColor, string driverName, params DriversSettings[] specificDriverSetting) |
Add a new AI car to the scene, the car is instantiated by this method on the next empty grid point More... | |
IRDSCarControllerAI | AddNewAICar (IRDSCarControllerAI AI, Color carColor, string driverName, params DriversSettings[] specificDriverSetting) |
Add a new AI car to the scene, the car needs to be already instantiated. More... | |
IRDSCarControllerAI | AddNewObstacle (Object car, bool hitMe, Vector3 position, Quaternion rotation) |
Adds the new obstacle. More... | |
IRDSCarControllerAI | AddNewObstacle (Object car, bool hitMe, Vector3 position, Vector3 rotation) |
Adds the new obstacle. More... | |
IRDSCarControllerAI | AddNewCar (Object car, bool isAI) |
bool | RemoveCar (IRDSCarControllerAI car) |
Removes the car and destroys it. More... | |
bool | RemoveCar (IRDSCarControllerAI car, bool destroy) |
Removes the car, and optionally destroys it. More... | |
bool | RegisterNewCar (IRDSCarControllerAI car, bool isNetworkCar) |
Registers the new car. This function is useful for registering cars instantiated by the Newtwork framework for multiplayer network games. More... | |
Static Public Member Functions | |
static void | PlayerControlsAsigment (ref IRDSPlayerControls playercontrols, IRDSControlAsigment controlAsigments) |
Assigns the controls to the Player. More... | |
Properties | |
static IRDSPlaceCars | instance [get] |
Gets the main instance. More... | |
IRDSCarControllerAI IRDSPlaceCars.AddNewAICar | ( | Object | car, |
Color | carColor, | ||
string | driverName, | ||
params DriversSettings[] | specificDriverSetting | ||
) |
Add a new AI car to the scene, the car is instantiated by this method on the next empty grid point
car | The prefab of the car that we want to instantiate. |
carColor | The color of the car. |
driverName | The name of this new AI driver. |
specificDriverSetting | Specific driver setting (optional). |
IRDSCarControllerAI IRDSPlaceCars.AddNewAICar | ( | IRDSCarControllerAI | AI, |
Color | carColor, | ||
string | driverName, | ||
params DriversSettings[] | specificDriverSetting | ||
) |
Add a new AI car to the scene, the car needs to be already instantiated.
AI | The instance of the new car IRDSCarControllerAI Class. |
carColor | The color of the car. |
driverName | The name of this new AI driver. |
specificDriverSetting | Specific driver setting (optional). |
IRDSCarControllerAI IRDSPlaceCars.AddNewObstacle | ( | Object | car, |
bool | hitMe, | ||
Vector3 | position, | ||
Quaternion | rotation | ||
) |
Adds the new obstacle.
car | Car. |
hitMe | If set to true hit me. |
position | Position. |
rotation | Rotation. |
IRDSCarControllerAI IRDSPlaceCars.AddNewObstacle | ( | Object | car, |
bool | hitMe, | ||
Vector3 | position, | ||
Vector3 | rotation | ||
) |
Adds the new obstacle.
car | Car. |
hitMe | If set to true hit me. |
position | Position. |
rotation | Rotation. |
IRDSCarControllerAI IRDSPlaceCars.AddNewPlayerCar | ( | Object | car, |
IRDSOtherPlayers | controls, | ||
string | driverName | ||
) |
Add a new player car to the scene, the car is instantiated by this method on the next empty grid point
car | The prefab of the car that we want to instantiate. |
controls | The controls that would be assigned to this new player car |
driverName | The name of this new player |
IRDSCarControllerAI IRDSPlaceCars.AddNewPlayerCar | ( | IRDSCarControllerAI | player, |
IRDSOtherPlayers | controls, | ||
string | driverName | ||
) |
Add a new player car to the scene, the car needs to be already instantiated
AI | The instance of the new car IRDSCarControllerAI Class. |
controls | The controls that would be assigned to this new player car |
driverName | The name of this new player |
Transform IRDSPlaceCars.GetGridPositions | ( | ) |
Gets the grid positions.
|
static |
Assigns the controls to the Player.
playercontrols | Playercontrols. |
controlAsigments | Control asigments. |
bool IRDSPlaceCars.RegisterNewCar | ( | IRDSCarControllerAI | car, |
bool | isNetworkCar | ||
) |
Registers the new car. This function is useful for registering cars instantiated by the Newtwork framework for multiplayer network games.
car | Car. |
isNetworkCar | If set to true is network car. |
bool IRDSPlaceCars.RemoveCar | ( | IRDSCarControllerAI | car | ) |
Removes the car and destroys it.
true
, if car was removed, false
otherwise.car | Car. |
bool IRDSPlaceCars.RemoveCar | ( | IRDSCarControllerAI | car, |
bool | destroy | ||
) |
Removes the car, and optionally destroys it.
true
, if car was removed, false
otherwise.car | Car. |
destroy | If set to true destroy. |
|
staticget |
Gets the main instance.
The main instance.