コルーチンが止まらない!
===================================
「ひつじさん、かぞえてゲットン!」というアプリを作りました!
是非遊んでみてください!
android用
https://play.google.com/store/apps/details?id=com.uphydn.straysheep
iOS用
https://itunes.apple.com/jp/app/straysheep/id1442473289?mt=8
===================================
コルーチンを使っていて
StopCoroutine(AnimationRoutine());
などで止めようと思っても止まらない時があります。
その場合、一番簡単な方法は
StartCoroutine("AnimationRoutine");
StopCoroutine("AnimationRoutine");
とコルーチン名をstringで渡すようにすると上手くいきます。
ていうか何やねんこの仕様。
ハマったのでメモ。