static void Initialize() { if (!initialized) { if (!Application.isPlaying) return; initialized = true; var g = new GameObject("Loom"); _current = g.AddComponent<Loom>(); } }
public void QueueOnMainThread(Action action) { Loom.QueueOnMainThread(action); }
public System.Threading.Thread RunAsync(Action a) { return(Loom.RunAsync(a)); }
public void QueueOnMainThread(Action action, float time) { Loom.QueueOnMainThread(action, time); }
void Awake() { _current = this; initialized = true; GameObject.DontDestroyOnLoad(gameObject); }
void OnDestroy() { if (_current == this) { initialized = false; _current = null; } }