public static void CreateInstance() { if (instance == null) { instance = new GameObject().AddComponent <UtilityMonoBehaviour>(); instance.gameObject.name = "Fast Path"; Que = new System.Collections.Generic.Queue <System.Collections.IEnumerator>(); runner = instance.StartCoroutine(FakeUpdate()); } }
public static void Start(System.Collections.IEnumerator coroutine) { instance.StartCoroutine(coroutine); }