Determining How Long Powerup Effects Should Last

While each of the power up should work for a short time, how should we decide? The old way was to guess and let it run and go back into the code and change it for there? Or is there a way to change inside the inspector window and tweak it until it looks right?

Why, yes I say there is a way. By using the [SerializeField], allows you to code to connect to the inspector window. By using the code that controls the object that is needed, you can also use it for the spawner.

Then you can tinker by putting in a new time of number until you find the right one.

So that is how I figured out the length of time a power up should last.

--

--