Home

Awesome

Co

Coroutines in Anywhere, for Unity 5

How to Use

public class PlainClass {

  public void PlainFunction () {
    Co.Run(Coroutine_In_PlainClass());
  }
  
  private IEnumerator Coroutine_In_PlainClass () {
    Debug.Log("Yey!");
    yield return new WaitForSeconds(1f);
    Debug.Log("Do Something!");
  }
  
}
private void SomeFunction () {
  Co.Delay(() => Debug.Log("Executed after 2 seconds!"), 2f);
}

Install

Please use unity-packman

License

MIT