Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using UnityEngine;
- public class deleteme : MonoBehaviour
- {
- void Start()
- {
- StartCoroutine(Main());
- }
- public void Stop()
- {
- StopCoroutine(Main());
- Debug.Log(">>>>>>> STOP!");
- }
- IEnumerator Main()
- {
- yield return null;
- while (true)
- {
- Debug.Log("x");
- yield return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement