C# Class TimeScaleController

Inheritance: MonoBehaviour
Exibir arquivo Open project: FIU-SCIS-Senior-Projects/SmartBuilding4 Class Usage Examples

Public Properties

Property Type Description
maxTimeScale float

Public Methods

Method Description
decreaseTimeScale ( ) : void

Decreases the time scale.

getTimeScale ( ) : float

Gets the time scale.

increaseTimeScale ( ) : void

Increases the time scale.

printTimeScale ( ) : void

Prints the time scale to the console for testing.

resetTimeScale ( ) : void

Resets the time scale.

setSpecificTimeScale ( float newTimeScale ) : void

Sets the specific time scale.

Private Methods

Method Description
Awake ( ) : void
Start ( ) : void

Method Details

decreaseTimeScale() public method

Decreases the time scale.
public decreaseTimeScale ( ) : void
return void

getTimeScale() public method

Gets the time scale.
public getTimeScale ( ) : float
return float

increaseTimeScale() public method

Increases the time scale.
public increaseTimeScale ( ) : void
return void

printTimeScale() public method

Prints the time scale to the console for testing.
public printTimeScale ( ) : void
return void

resetTimeScale() public method

Resets the time scale.
public resetTimeScale ( ) : void
return void

setSpecificTimeScale() public method

Sets the specific time scale.
public setSpecificTimeScale ( float newTimeScale ) : void
newTimeScale float New time scale.
return void

Property Details

maxTimeScale public_oe property

The max time scale. negative or positive.
public float maxTimeScale
return float