Could you please explain why we no longer want to use coroutines with the switch statement? is it for optimization reasons?
When the script is just handling the one thing (Roaming), Coroutines can fill in for Update loops, as there’s not much need for state or making decisions based on conditions.
When the script starts to handle multiple states (Roaming, Shooting, etc), Coroutines can actually get in the way. Then it’s better to stick with running things through our switch statement.
1 Like