CoroutineSystem.cs 590 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using UnityEngine;
  3. using Blue;
  4. namespace GHZLangChao
  5. {
  6. public class CoroutineSystem : SingletonMonobehaviour<CoroutineSystem>
  7. {
  8. /// <summary>
  9. /// 启动一个协程
  10. /// </summary>
  11. public Coroutine Start_Coroutine(IEnumerator coroutine)
  12. {
  13. return StartCoroutine(coroutine);
  14. }
  15. /// <summary>
  16. /// 停止一个协程序
  17. /// </summary>
  18. public void Stop_Coroutine(Coroutine routine)
  19. {
  20. StopCoroutine(routine);
  21. }
  22. }
  23. }