Complete the code to stop a coroutine named "myCoroutine".
StopCoroutine([1]);To stop a coroutine, you use StopCoroutine with the coroutine variable, here myCoroutine.
Complete the code to stop all running coroutines in a MonoBehaviour.
this.[1]();To stop all coroutines running on a MonoBehaviour, use StopAllCoroutines().
Fix the error in stopping a coroutine started by a string method name.
StopCoroutine([1]);When stopping a coroutine by method name, pass the method name as a string, like "MyCoroutine".
Fill both blanks to start and then stop a coroutine stored in a variable.
Coroutine myCoroutine = [1](MyRoutine()); StopCoroutine([2]);
First, start the coroutine with StartCoroutine and store it in myCoroutine. Then stop it by passing myCoroutine to StopCoroutine.
Fill all three blanks to start a coroutine, stop it, and then start it again.
Coroutine [1] = [2](MyRoutine()); StopCoroutine([3]);
Declare myCoroutine to store the coroutine started by StartCoroutine. Then stop it by passing myCoroutine to StopCoroutine.