public void OnValidate() { if (_areModulesInitialized) { _mainModule.Validate(waterSize); _meshModule.Validate(subdivisionsCountPerUnit); _simulationModule.Validate(damping, stiffness, spread, firstCustomBoundary, secondCustomBoundary, useCustomBoundaries); _renderingModule.Validate(GetRenderingModuleParameters()); _onCollisonRipplesModule.Validate(GetCollisionRipplesModuleParameters()); _constantRipplesModule.Validate(GetConstantRipplesModuleParameters()); _scriptGeneratedRipplesModule.Validate(GetScriptGeneratedRipplesModuleParameters()); _attachedComponentsModule.Validate(buoyancyEffectorSurfaceLevel); } }
protected override void ValidateProperties() { if (_areModulesInitialized) { _mainModule.Validate(_size); _meshModule.Validate(subdivisionsCountPerUnit); _simulationModule.Validate(GetSimulationModuleParameters()); _renderingModule.Validate(GetRenderingModuleParameters()); _onCollisonRipplesModule.Validate(GetCollisionRipplesModuleParameters()); _constantRipplesModule.Validate(GetConstantRipplesModuleParameters()); _scriptGeneratedRipplesModule.Validate(GetScriptGeneratedRipplesModuleParameters()); _attachedComponentsModule.Validate(buoyancyEffectorSurfaceLevel, buoyancyEffectorSurfaceLevelLocation, boxColliderTopEdgeLocation); } }
private void OnValidate() { if (_areModulesInitialized) { _mainModule.Validate(_size); _meshModule.Validate(subdivisionsCountPerUnit); _simulationModule.Validate(GetSimulationModuleParameters()); _renderingModule.Validate(GetRenderingModuleParameters()); _onCollisonRipplesModule.Validate(GetCollisionRipplesModuleParameters()); _constantRipplesModule.Validate(GetConstantRipplesModuleParameters()); _scriptGeneratedRipplesModule.Validate(GetScriptGeneratedRipplesModuleParameters()); _attachedComponentsModule.Validate(buoyancyEffectorSurfaceLevel); } }