15 lines
330 B
C#
15 lines
330 B
C#
|
using System.Collections;
|
||
|
|
||
|
namespace Utils
|
||
|
{
|
||
|
public static class EnumeratorExtensions
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Shorthand to run a coroutine: IEnumeratorFunction().Run();
|
||
|
/// </summary>
|
||
|
public static void Run(this IEnumerator toRun)
|
||
|
{
|
||
|
Runner.Run(toRun);
|
||
|
}
|
||
|
}
|
||
|
}
|