Ejemplo n.º 1
0
        public bool TryLoadContent()
        {
            if (content != null)
            {
                return(true);
            }

            ContentLoadResult result = ContentLoader.LoadContent(nameKey);

            content = result.content;
            return(result.isSuccess);
        }
Ejemplo n.º 2
0
        public bool TryLoadContent(out object outContent)
        {
            bool isSuccess = true;

            if (content == null)
            {
                ContentLoadResult result = ContentLoader.LoadContent(nameKey);
                isSuccess = result.isSuccess;
                content   = result.content;
            }

            outContent = content;
            return(isSuccess);
        }