C# Class MoveCar, SPCSAISelfDrivingCar

Inheritance: MonoBehaviour
显示文件 Open project: MCKapur/SPCSAISelfDrivingCar Class Usage Examples

Public Properties

Property Type Description
axleInfos List
finishText Text,
isAccelerating float
isControlledByAI bool
isFinished bool
isNotTurning float
isTurningLeft float
isTurningRight float
maxBrakeTorque float
maxMotorTorque float
maxSpeed float
maxSteeringAngle float
movingCarSound UnityEngine.AudioClip
mySpeed float
scaledSpeed float
shouldAccelerate float
shouldNotTurn float
shouldSendData bool
shouldTurnLeft float
shouldTurnRight float

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
IsFinished ( bool _crashed ) : void
LoadLevel ( string levelName, float waitTime ) : IEnumerator
Map ( float OldMin, float OldMax, float NewMin, float NewMax, float OldValue ) : float
OnFirstAccelerate ( ) : void
RestartIn ( float waitTime ) : IEnumerator
Update ( ) : void

Private Methods

Method Description
PlaySound ( ) : void
StartAgain ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

IsFinished() public method

public IsFinished ( bool _crashed ) : void
_crashed bool
return void

LoadLevel() public method

public LoadLevel ( string levelName, float waitTime ) : IEnumerator
levelName string
waitTime float
return IEnumerator

Map() public method

public Map ( float OldMin, float OldMax, float NewMin, float NewMax, float OldValue ) : float
OldMin float
OldMax float
NewMin float
NewMax float
OldValue float
return float

OnFirstAccelerate() public method

public OnFirstAccelerate ( ) : void
return void

RestartIn() public method

public RestartIn ( float waitTime ) : IEnumerator
waitTime float
return IEnumerator

Update() public method

public Update ( ) : void
return void

Property Details

axleInfos public_oe property

public List axleInfos
return List

finishText public_oe property

public Text, finishText
return Text,

isAccelerating public_oe static_oe property

public static float isAccelerating
return float

isControlledByAI public_oe static_oe property

public static bool isControlledByAI
return bool

isFinished public_oe static_oe property

public static bool isFinished
return bool

isNotTurning public_oe static_oe property

public static float isNotTurning
return float

isTurningLeft public_oe static_oe property

public static float isTurningLeft
return float

isTurningRight public_oe static_oe property

public static float isTurningRight
return float

maxBrakeTorque public_oe property

public float maxBrakeTorque
return float

maxMotorTorque public_oe property

public float maxMotorTorque
return float

maxSpeed public_oe property

public float maxSpeed
return float

maxSteeringAngle public_oe property

public float maxSteeringAngle
return float

movingCarSound public_oe property

public AudioClip,UnityEngine movingCarSound
return UnityEngine.AudioClip

mySpeed public_oe static_oe property

public static float mySpeed
return float

scaledSpeed public_oe static_oe property

public static float scaledSpeed
return float

shouldAccelerate public_oe static_oe property

public static float shouldAccelerate
return float

shouldNotTurn public_oe static_oe property

public static float shouldNotTurn
return float

shouldSendData public_oe static_oe property

public static bool shouldSendData
return bool

shouldTurnLeft public_oe static_oe property

public static float shouldTurnLeft
return float

shouldTurnRight public_oe static_oe property

public static float shouldTurnRight
return float