示例#1
0
        /// <summary>
        /// Retruns ths shared instance of the cache
        /// </summary>
        public static CCBundleCache sharedTextureCache()
        {
            if (g_sharedTextureCache == null)
            {
                g_sharedTextureCache = new CCBundleCache();
            }

            return(g_sharedTextureCache);
        }
示例#2
0
 /// <summary>
 /// purges the cache. It releases the retained instance.
 /// @since v0.99.0
 /// </summary>
 public static void purgeSharedTextureCache()
 {
     g_sharedTextureCache = null;
 }