Exemple #1
0
        private void ContentIsLoaded()
        {
            RealmsContentProvider.SettingData result = new RealmsContentProvider.SettingData();
            result.galleryData = _gallery;
            result.videosData  = _videos;

            if (OnLoadingComplete != null)
            {
                OnLoadingComplete(result);
            }
        }
Exemple #2
0
        private IEnumerator LoadSettingsJSON(string url)
        {
            Debug.Log("Setting loading...");

            WWW request = new WWW(url);

            yield return(request);

            if (request.error != null)
            {
                Debug.LogError(request.error);
            }
            else
            {
                Debug.Log("Settings loading complete!");

                RealmsContentProvider.SettingData result = JsonUtility.FromJson <RealmsContentProvider.SettingData> (request.text);

                OnContentItemLoadingComplete();
            }
        }