Beispiel #1
0
	void OnDestroy() {
		if (null != _backgroundProcessor)
			_backgroundProcessor.Stop();
		
		_backgroundProcessor = null;
	}
Beispiel #2
0
	void OnApplicationQuit() {
		if (null != _backgroundProcessor)
        	_backgroundProcessor.Stop();
		
		_backgroundProcessor = null;
    }
Beispiel #3
0
	void Init() {
		_backgroundProcessor = new BackgroundWorldProcessor(useMultithreading && useThreadpool);
		
		// Start the background processor
		if (useMultithreading)
			_backgroundProcessor.Start();
	
		// Start the foreground process loop
		StartCoroutine(Process());
	}