[Unity] StopCoroutine이 먹히지 않을 때

StartCoroutine("AttackEnemy");

 

StopCoroutine("AttackEnemy");



또는


Coroutine lastRoutine = null;

 

lastRoutine = StartCoroutine(YourCoroutine());

 

StopCoroutine(lastRoutine); 




참조 : https://answers.unity.com/questions/934490/stopcoroutine-is-not-stopping-my-coroutines.html

이 글을 공유하기

댓글(0)

Designed by JB FACTORY