BBGamelib.CCDirector.end C# (CSharp) Method

end() public method

public end ( ) : void
return void
		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();
		}