public override void InitializeModules() { if (_areModulesInitialized) { return; } _mainModule = new WaterfallMainModule(this, _size); _renderingModule = new WaterfallRenderingModule(this, GetRenderingModuleParameters()); _meshModule = new WaterfallMeshModule(this, _meshModuleTopBottomEdgesRelativeLength); _materialModule = new WaterfallMaterialModule(this); _ripplesModule = new WaterfallRipplesModule(this, GetRipplesModuleParameters()); _animationModule = new WaterfallAnimationModule(this); _attachedComponentsModule = new WaterfallAttachedComponentsModule(this); _mainModule.Initialize(); _meshModule.Initialize(); _materialModule.Initialize(); _renderingModule.Initialize(); _ripplesModule.Initialize(); _animationModule.Initialze(); _attachedComponentsModule.Initialize(); _areModulesInitialized = true; }
public override void InitializeModules() { if (_areModulesInitialized) { return; } _mainModule = new WaterfallMainModule(this, _size); _renderingModule = new WaterfallRenderingModule(this, GetRenderingModuleParameters()); _meshModule = new WaterfallMeshModule(this); _materialModule = new WaterfallMaterialModule(this); _ripplesModule = new WaterfallRipplesModule(this, GetRipplesModuleParameters()); _mainModule.Initialize(); _meshModule.Initialize(); _materialModule.Initialize(); _renderingModule.Initialize(); _ripplesModule.Initialize(); _areModulesInitialized = true; }