/// <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; }
/// <summary> /// Purges the cache. It releases all the Sprite Frames and the retained instance. /// </summary> public static void purgeSharedSpriteFrameCache() { pSharedSpriteFrameCache = null; }