The next requirement is to create a collectable. This has been created before in:
For now, my collectable is a Battery:
It uses a Delegate to communicate that the Battery collided with the Player:
From the Player, it calls another Delegate to update the UI:
The UIManager updates the UI text:
We can add more collectables in this manner. However, for now, we will just use batteries.