コード例 #1
0
        /// <summary>
        /// Returns the shared instance of the Sprite Frame cache
        /// </summary>
        public static CCSpriteFrameCache sharedSpriteFrameCache()
        {
            if (pSharedSpriteFrameCache == null)
            {
                pSharedSpriteFrameCache = new CCSpriteFrameCache();
                pSharedSpriteFrameCache.init();
            }

            return pSharedSpriteFrameCache;
        }
コード例 #2
0
 /// <summary>
 /// Purges the cache. It releases all the Sprite Frames and the retained instance. 
 /// </summary>
 public static void purgeSharedSpriteFrameCache()
 {
     pSharedSpriteFrameCache = null;
 }
コード例 #3
0
 /// <summary>
 /// Purges the cache. It releases all the Sprite Frames and the retained instance.
 /// </summary>
 public static void purgeSharedSpriteFrameCache()
 {
     pSharedSpriteFrameCache = null;
 }