ClassicCityBuilderKit 1.8.8
|
visualizes a building value by sizing a rect to its ratio and writing the value in a text field
used for the building health bar in the Defense demo
Public Member Functions | |
override void | Initialize (IBuilding building, IBuildingValue value) |
Public Member Functions inherited from CityBuilderCore.BuildingValueBar | |
bool | HasValue () |
float | GetMaximum () |
float | GetValue () |
Vector3 | GetPosition () |
float | GetRatio () |
Public Attributes | |
TMPro.TMP_Text | Text |
string | Format |
RectTransform | Rect |
Properties | |
override bool | IsGlobal [get] |
Properties inherited from CityBuilderCore.BuildingValueBar | |
IBuilding | Building [get] |
virtual bool | IsGlobal [get] |
Additional Inherited Members | |
Protected Attributes inherited from CityBuilderCore.BuildingValueBar | |
IBuilding | _building |
IBuildingValue | _value |
|
inlinevirtual |
Reimplemented from CityBuilderCore.BuildingValueBar.