Beispiel #1
0
        internal void _Init()
        {
            if (!_isInited && null != localPath)
            {
                _isInited = true;

                InnerWebPrefab inner;
                var            cache = WebPrefab._GetLruCache();
                cache.TryGetValue(localPath, out inner);
                inner.AddReference();
            }
        }
Beispiel #2
0
        private void OnDestroy()
        {
            if (_isInited && null != localPath)
            {
                InnerWebPrefab inner;
                var            cache = WebPrefab._GetLruCache();

                if (cache.TryGetValue(localPath, out inner))
                {
                    WebTools.RemoveFromCache(cache, ref inner);
                }
            }
        }
Beispiel #3
0
        public WebPrefab LoadWebPrefab(WebArgument argument, Action <WebPrefab> handler)
        {
            var webPrefab = new WebPrefab(argument, handler);

            return(webPrefab);
        }