C# Class RaceInfo, racing_game

Inheritance: MonoBehaviour
Datei anzeigen Open project: Rarau/racing_game Class Usage Examples

Public Properties

Property Type Description
carController CarController,
cumulativeLapTimes float
gear int
gm GameManager,
lap int
lapTimer float
lapTimes List
lastCheckpoint int
position Vector3
racePosition int
rotation Quaternion
speed float

Public Methods

Method Description
GetLap ( ) : int
GetLastCheckpoint ( ) : int
GetOverallRaceTime ( ) : float
SaveLapTime ( ) : void
SetLap ( int currentLap ) : void
SetLapTimer ( float lapTime ) : void
SetLastCheckpoint ( int checkpoint ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
CarStuck ( ) : IEnumerator
IsFlipped ( ) : bool

Method Details

GetLap() public method

public GetLap ( ) : int
return int

GetLastCheckpoint() public method

public GetLastCheckpoint ( ) : int
return int

GetOverallRaceTime() public method

public GetOverallRaceTime ( ) : float
return float

SaveLapTime() public method

public SaveLapTime ( ) : void
return void

SetLap() public method

public SetLap ( int currentLap ) : void
currentLap int
return void

SetLapTimer() public method

public SetLapTimer ( float lapTime ) : void
lapTime float
return void

SetLastCheckpoint() public method

public SetLastCheckpoint ( int checkpoint ) : void
checkpoint int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

carController public_oe property

public CarController, carController
return CarController,

cumulativeLapTimes public_oe property

public float cumulativeLapTimes
return float

gear public_oe property

public int gear
return int

gm public_oe property

public GameManager, gm
return GameManager,

lap public_oe property

public int lap
return int

lapTimer public_oe property

public float lapTimer
return float

lapTimes public_oe property

public List lapTimes
return List

lastCheckpoint public_oe property

public int lastCheckpoint
return int

position public_oe property

public Vector3 position
return Vector3

racePosition public_oe property

public int racePosition
return int

rotation public_oe property

public Quaternion rotation
return Quaternion

speed public_oe property

public float speed
return float