lucid-super-dream/Assets/Utils/EnumeratorExtensions.cs

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);
}
}
}