コード例 #1
0
        /// <summary>
        /// Fetches the current resource.
        /// </summary>
        public virtual void LoadCurrent()
        {
            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.GetCurrentResource <T>(Formatter, OnContentReady);
#endif
        }