Thruster: Scaling Bar UI
Objective: add a thruster cooldown system to the player
To do this, I will need to have values for the max thruster, current thruster, usage rate, recharge rate and a cooldown in the player script
I will also need a thruster slider, fill, gradient, and UI text in the UI manager script
I need to change the Move method to check the overheated, and then use the thruster or recharge the thrusters:
Next I will need to implement the UseThrusters and RegenerateThrusters by incrementing or decrementing the thrusters at the rate and ensure the thrusters are within the min/max threshold:
Then I determine if the thrusters are overheated and cant be used or if they have cooled down long enough. And then update the UI.
Here I set the slider bar to a gradient value based on the current/max thruster value and tell the player when the thrusters are starting to overheat.