We've got a bar to illustrate our current ammo count against our maximum capacity, but it's always useful to see exact values. Therefore we're going to add text for both of these values, similar to how we did it for our health.
Open your IDE and have your
TutorialHUD class ready to be altered.
This is going to be very similar to the steps we took in the recipe for displaying an integer to represent our pawn's health. The only major change we need to make here is to the properties that we'll be accessing and using. Rather than displaying our pawn's health, we'll be using the ammo property for our pawn's currently equipped weapon.