i see an IEnumorator are very useful but in this case i dont know there are any solution?
IEnumerator IEName()
{
Do A;
yield return new WaitForSeconds(5f);
Do B;
}
so i wonder if i use StartCoroutine(IEName()), how can i stop and break this Coroutine(if done “Do a”, just “Do a” not “Do b”) or finish it(instant “Do b”). Thanks for read, hope u help me