C# Class EnergyHub

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

Méthodes publiques

Méthode Description
Start ( ) : void
Update ( ) : void
getIsSupplyingEnergy ( ) : bool

Gets if is supplying energy.

getTotalEnergyUsage ( ) : float

Gets the total energy usage of all objects in the list.

setIsSupplyingEnergy ( bool state ) : void

Sets if is supplying energy.

supplyEnergy ( ) : void

Supplies the energy to all objects in the list.

Method Details

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

getIsSupplyingEnergy() public méthode

Gets if is supplying energy.
public getIsSupplyingEnergy ( ) : bool
Résultat bool

getTotalEnergyUsage() public méthode

Gets the total energy usage of all objects in the list.
public getTotalEnergyUsage ( ) : float
Résultat float

setIsSupplyingEnergy() public méthode

Sets if is supplying energy.
public setIsSupplyingEnergy ( bool state ) : void
state bool If set to true state.
Résultat void

supplyEnergy() public méthode

Supplies the energy to all objects in the list.
public supplyEnergy ( ) : void
Résultat void