Пример #1
0
 public AppController(IContextProvider contextProvider, IFlowProvider flowProvider, IServiceProvider serviceProvider, IFlowConfigurationProvider flowConfigurationProvider)
 {
     this.contextProvider           = contextProvider;
     this.flowProvider              = flowProvider;
     this.serviceProvider           = serviceProvider;
     this.flowConfigurationProvider = flowConfigurationProvider;
 }
Пример #2
0
        private void CleanUp()
        {
            foreach (var lodData in _lodDatas)
            {
                lodData.OnDisable();
            }
            _lodDatas.Clear();

#if UNITY_EDITOR
            if (!EditorApplication.isPlaying && Root != null)
            {
                DestroyImmediate(Root.gameObject);
            }
            else
#endif
            if (Root != null)
            {
                Destroy(Root.gameObject);
            }

            Root = null;

            _lodTransform       = null;
            _lodDataAnimWaves   = null;
            _lodDataClipSurface = null;
            _lodDataDynWaves    = null;
            _lodDataFlow        = null;
            _lodDataFoam        = null;
            _lodDataSeaDepths   = null;
            _lodDataShadow      = null;

            if (CollisionProvider != null)
            {
                CollisionProvider.CleanUp();
                CollisionProvider = null;
            }

            if (FlowProvider != null)
            {
                FlowProvider.CleanUp();
                FlowProvider = null;
            }

            _oceanChunkRenderers.Clear();
        }
Пример #3
0
 public ScoresApp(ILogger <ScoresApp> logger, IServiceProvider serviceProvider, IFlowProvider flowProvider)
 {
     _logger          = logger;
     _serviceProvider = serviceProvider;
     _flowProvider    = flowProvider;
 }
Пример #4
0
 public AccountingService(IFlowProvider flowProvider)
 {
     this.flowProvider = flowProvider;
 }
Пример #5
0
 public MarcoController(IPublisher publisher, IFlowProvider flowProvider, Visualizer visualizer)
 {
     this.publisher    = publisher;
     this.flowProvider = flowProvider;
     this.visualizer   = visualizer;
 }
Пример #6
0
 public ParallelFlowController(IFlowProvider flowProvider, IExampleState exampleState)
 {
     this.flowProvider = flowProvider;
     this.exampleState = exampleState;
 }
Пример #7
0
 public FlowEndController(IFlowProvider flowProvider)
 {
     this.flowProvider = flowProvider;
 }