Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }