Пример #1
0
        public void Load(UILoadCallback callback)
        {
            if (this._loading)
            {
                return;
            }

            this._callback = callback;
            this._loading  = true;
            EditorCoroutineRunner.StartEditorCoroutine(this.loader());
        }
Пример #2
0
        public void Load(string path)
        {
            www = new WWW(path);
            if (www != null)
            {
#if UNITY_EDITOR
                EditorCoroutineRunner.StartEditorCoroutine(CoroutineLoadContent());
#else
                CoroutineRunner.StartCoroutine(CoroutineLoadContent());
#endif
            }
        }