Skip to content

Instantly share code, notes, and snippets.

View coryleach's full-sized avatar
💭
👾

Cory Leach of Legends coryleach

💭
👾
View GitHub Profile
@coryleach
coryleach / HeadlessCoroutine.cs
Last active September 16, 2019 23:48
Unity Coroutines without MonoBehaivours.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
/// <summary>
/// Utility for starting coroutines that aren't attached to a MonoBehaviour or GameObject
/// Just call HeadlessCoroutine.Start(MyCoroutine());