StopCoroutine









How do I use Stop Coroutine
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: Movable.cs Copy
26  protected virtual void StopMoveCoroutine() {
27   if (moveCoroutine != null) {
28    StopCoroutine(moveCoroutine);
29   }
30  }
File name: UIgame.cs Copy
84     public void ShowInformation(string info)
85     {
86         informationText.text = info;
87         StopCoroutine("ShowInfoForSomeTime");
88         StartCoroutine("ShowInfoForSomeTime");
89     }
File name: PlayerControl.cs Copy
138     public void Die()
139     {
140         StopCoroutine("Immortality");
141
142         immortal = false;
143
144         transform.gameObject.SetActive(false);
145     }

StopCoroutine 135 lượt xem

Gõ tìm kiếm nhanh...