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

15 lines
330 B
C#
Raw Normal View History

2021-01-05 13:10:20 +01:00
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);
}
}
}