Unity3D停止不了协程

我直接用StopCoroutine直接像StartCoroutine一样里面加方法不能停止该协程。通过把协程赋予到变量再控制此变量来停止才能中断此协程。

private IEnumerator cortinue;
cortinue = E_MoveToPoint();
 private IEnumerator  E_MoveToPoint()
 {
  
}
StopCoroutine(cortinue);

猜你喜欢

转载自www.cnblogs.com/weiqiangwaideshijie/p/9269998.html
今日推荐