-
Using void Update() and switch cases.
-
Using IEnumerator infinite loop and check state.
I prefer 2. but anyone know why one of above is superior than other? or case by case usage?
Thanks.
Using void Update() and switch cases.
Using IEnumerator infinite loop and check state.
I prefer 2. but anyone know why one of above is superior than other? or case by case usage?
Thanks.
I personally would use a Coroutine because in a turn based game, you will constantly be stopping and starting execution. Also, using a Coroutine is more efficient and doesn’t use up as much performance as Update.