public void end() { _runningScene.onExitTransitionDidStart(); _runningScene.onExit(); _runningScene.cleanup(); _runningScene = null; _nextScene = null; // remove all objects, but don't release it. // runWithScene might be executed after 'end'. _scenesStack.Clear(); this.stopAnimation(); this.view = null; // Purge all managers / caches CCAnimationCache.PurgeSharedAnimationCache(); CCSpriteFrameCache.PurgeSharedSpriteFrameCache(); }
/** Purges the cache. It releases all the CCAnimation objects and the shared instance. */ public static void PurgeSharedAnimationCache() { _sharedAnimationCache = null; }