C# Class TimeScaleController

Inheritance: MonoBehaviour
Afficher le fichier Open project: FIU-SCIS-Senior-Projects/SmartBuilding4 Class Usage Examples

Méthodes publiques

Свойство Type Description
maxTimeScale float

Méthodes publiques

Méthode 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

Méthode Description
Awake ( ) : void
Start ( ) : void

Method Details

decreaseTimeScale() public méthode

Decreases the time scale.
public decreaseTimeScale ( ) : void
Résultat void

getTimeScale() public méthode

Gets the time scale.
public getTimeScale ( ) : float
Résultat float

increaseTimeScale() public méthode

Increases the time scale.
public increaseTimeScale ( ) : void
Résultat void

printTimeScale() public méthode

Prints the time scale to the console for testing.
public printTimeScale ( ) : void
Résultat void

resetTimeScale() public méthode

Resets the time scale.
public resetTimeScale ( ) : void
Résultat void

setSpecificTimeScale() public méthode

Sets the specific time scale.
public setSpecificTimeScale ( float newTimeScale ) : void
newTimeScale float New time scale.
Résultat void

Property Details

maxTimeScale public_oe property

The max time scale. negative or positive.
public float maxTimeScale
Résultat float