Beispiel #1
0
        public GameObject RunPipeline()
        {
            if (!RoadNetworkSourceExists())
            {
                return(null);
            }

            var        pipeline = new ContentPipeline();
            GameObject generatedObjects;

            try
            {
                generatedObjects = roadNetworkSource == RoadNetworkSource.OpenDrive
                    ? RunOpenDrivePipeline(pipeline)
                    : RunSplineBasedRoadNetworkPipeline(pipeline);
            }
            catch
            {
                pipeline.Dispose();
                throw;
            }

            pipeline.Dispose();
            return(generatedObjects);
        }
Beispiel #2
0
 public void TearDown()
 {
     m_Pipeline.Dispose();
     foreach (var obj in m_TearDownObjects)
     {
         Object.DestroyImmediate(obj);
     }
     m_TearDownObjects.Clear();
 }