public static Coroutine Execute( IEnumerator routine ) { if( !Instance ){ var go = new GameObject( "EditorCoroutine" ); Instance = go.AddComponent< EditorCoroutine >(); } return Instance.StartCoroutine( routine ); }
private void Awake() { Instance = this; }