Ejemplo n.º 1
0
 /// <summary>
 ///    Attach a scheduler to render loop.
 ///    Must be called before using coroutine.
 /// </summary>
 public static void Run()
 {
     if (instance != null)
     {
         return;
     }
     instance = new CoroutineScheduler();
     instance.Attach();
 }
Ejemplo n.º 2
0
 /// <summary>
 ///    Stop a scheduler. All coroutines will be released.
 /// </summary>
 public static void Stop()
 {
     instance?.Detach();
     instance = null;
 }