|
Eye of the Nile Docs
Everything you need to know to get started!
|
This script provides functions for other scripts to update the boss's healthbar on the Canvas. There are functions for:
Documentation updated 12/27/2024
Public Member Functions | |
| void | SetHealthbarPercentage (float healthbarPercentage) |
| Sets the healthbar's width and position to be filled a certain percentage. | |
| void | SetDisplayName (string bossName) |
| Changes the text above the healthbar. | |
| void | SetHealthbarVisible (bool isVisible) |
Protected Attributes | |
| RectTransform | healthbarUnderside |
| Reference to the healthbar underside, which is what the healthbar takes the shape of. | |
| RectTransform | healthbar |
| Reference to the red healthbar part of this object that shrinks as the boss takes damage. | |
| TMP_Text | bossNameText |
| Reference to the TextMeshPro above the healthbar that displays the boss's name. | |
| void BossHealthbarHUD.SetDisplayName | ( | string | bossName | ) |
Changes the text above the healthbar.
| bossName | The string that will be displayed. |
| void BossHealthbarHUD.SetHealthbarPercentage | ( | float | healthbarPercentage | ) |
Sets the healthbar's width and position to be filled a certain percentage.
| healthbarPercentage | The percentage full the healthbar will be set to. |
| void BossHealthbarHUD.SetHealthbarVisible | ( | bool | isVisible | ) |
|
protected |
Reference to the TextMeshPro above the healthbar that displays the boss's name.
|
protected |
Reference to the red healthbar part of this object that shrinks as the boss takes damage.
|
protected |
Reference to the healthbar underside, which is what the healthbar takes the shape of.