I was looking for some clarification on coroutine lifecycle.
Let’s say we have two classes
AnEnemy and starts a coroutine on it with branch:
AnEnemy. The enemy launches his own coroutine in his constructor:
Let’s say that the
_behavior coroutine runs endlessly in both scenarios.
What happens to
_behavior when the enemy class is destroyed in each scenario? More specifically, does
_behavior get scoped based on where it is branched from?