C# Class EnergyHub

Inheritance: MonoBehaviour
ファイルを表示 Open project: FIU-SCIS-Senior-Projects/SmartBuilding4

Public Methods

Method 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 method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

getIsSupplyingEnergy() public method

Gets if is supplying energy.
public getIsSupplyingEnergy ( ) : bool
return bool

getTotalEnergyUsage() public method

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

setIsSupplyingEnergy() public method

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

supplyEnergy() public method

Supplies the energy to all objects in the list.
public supplyEnergy ( ) : void
return void