2 Questions.
- Am curious if the
RegenerateStaminaRoutine()
using awhile(true)
can cause problems with performance if it never returns. If it does not cause problems, then question 2 - Can an Infinite Coroutine like this be used for a Game Timer that returns the number of seconds elapsed since Game Started.
Is it a better practice to invoke the CoRoutine to run maxStamina times everytime Stamina is consumed and that too only if the same Coroutine is not already running ?