コード例 #1
0
        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();
        }
コード例 #2
0
 /** Purges the cache. It releases all the CCAnimation objects and the shared instance. */
 public static void PurgeSharedAnimationCache()
 {
     _sharedAnimationCache = null;
 }