CoroutineSystem.cs 493 B

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