Example #1
0
        void OnPlayModeStateChange(PlayModeStateChange state)
        {
            TerraConfig.Log("Killing worker threads before exiting play mode");

            // Destroy lingering worker thread
            if (state == PlayModeStateChange.ExitingPlayMode && Worker != null)
            {
                Worker.ForceStop();
            }
        }