예제 #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
            }
        }