コード例 #1
0
        /// <summary>
        /// Fetches the next resource.
        /// </summary>
        public virtual void LoadNext(int offset = 1)
        {
            if (!IsContentVisible)
            {
                return;
            }

            if (ContentAccessor == null)
            {
                Debug.LogError("The presenter's content is null.");
                return;
            }

            if (Formatter == null)
            {
                Debug.LogError("The presenter's content formatter is null.");
            }

#if UNITY_UWP
            IsContentReady = false;
            ContentAccessor.GetNextResource <T>(Formatter, OnContentReady, offset);
#endif
        }