public void Load(UILoadCallback callback) { if (this._loading) { return; } this._callback = callback; this._loading = true; EditorCoroutineRunner.StartEditorCoroutine(this.loader()); }
public void Load(string path) { www = new WWW(path); if (www != null) { #if UNITY_EDITOR EditorCoroutineRunner.StartEditorCoroutine(CoroutineLoadContent()); #else CoroutineRunner.StartCoroutine(CoroutineLoadContent()); #endif } }