|
Eye of the Nile Docs
Everything you need to know to get started!
|
Updates the text display for how many health potions the player currently has.
Documentation updated 3/5/2024
Private Member Functions | |
| void | Awake () |
| On Awake, get the potion count from the DataManager. | |
| void | OnEnable () |
| Subscribe to potionCountChanged event. | |
| void | OnDisable () |
| Unsubscribe from potionCountChanged event. | |
| void | UpdateCount (int newCount) |
| Update text to display the new potion count. | |
Private Attributes | |
| TMP_Text | countText |
| Reference to the text that displays the amount of potions. | |
|
private |
On Awake, get the potion count from the DataManager.
|
private |
Unsubscribe from potionCountChanged event.
|
private |
Subscribe to potionCountChanged event.
|
private |
Update text to display the new potion count.
|
private |
Reference to the text that displays the amount of potions.