protected void ApplyPresetBase(TunnellingPresetBase p) { if (p.overrideEffectCoverage) { effectCoverage = p.effectCoverage; } if (p.overrideEffectColor) { effectColor = p.effectColor; } if (p.overrideEffectFeather) { effectFeather = p.effectFeather; } if (p.overrideApplyColorToBackground) { applyColorToBackground = p.applyColorToBackground; } if (p.overrideSkybox) { effectSkybox = p.skybox; } if (p.overrideAngularVelocity) { useAngularVelocity = p.angularVelocity.use; angularVelocityStrength = p.angularVelocity.strength; angularVelocityMin = p.angularVelocity.min; angularVelocityMax = p.angularVelocity.max; angularVelocitySmoothing = p.angularVelocity.smoothing; } if (p.overrideAcceleration) { useAcceleration = p.acceleration.use; accelerationStrength = p.acceleration.strength; accelerationMin = p.acceleration.min; accelerationMax = p.acceleration.max; accelerationSmoothing = p.acceleration.smoothing; } if (p.overrideVelocity) { useVelocity = p.velocity.use; velocityStrength = p.velocity.strength; velocityMin = p.velocity.min; velocityMax = p.velocity.max; velocitySmoothing = p.velocity.smoothing; } }
protected void ApplyPresetBase(TunnellingPresetBase p) { if (p.overrideEffectCoverage) { effectCoverage = p.effectCoverage; } if (p.overrideEffectColor) { effectColor = p.effectColor; } if (p.overrideEffectFeather) { effectFeather = p.effectFeather; } if (p.overrideApplyColorToBackground) { applyColorToBackground = p.applyColorToBackground; } if (p.overrideSkybox) { effectSkybox = p.skybox; } if (p.overrideAngularVelocity) { useAngularVelocity = p.angularVelocity.use; angularVelocityStrength = p.angularVelocity.strength; angularVelocityMin = p.angularVelocity.min; angularVelocityMax = p.angularVelocity.max; angularVelocitySmoothing = p.angularVelocity.smoothing; } if (p.overrideAcceleration) { useAcceleration = p.acceleration.use; accelerationStrength = p.acceleration.strength; accelerationMin = p.acceleration.min; accelerationMax = p.acceleration.max; accelerationSmoothing = p.acceleration.smoothing; } if (p.overrideVelocity) { useVelocity = p.velocity.use; velocityStrength = p.velocity.strength; velocityMin = p.velocity.min; velocityMax = p.velocity.max; velocitySmoothing = p.velocity.smoothing; } if (p.overrideUseCounterMotion) { useCounterMotion = p.useCounterMotion; } if (p.overrideCounterRotationPerAxis) { counterRotationPerAxis = p.counterRotationPerAxis; } if (p.overrideUseArtificialTilt) { useArtificialTilt = p.useArtificialTilt; } if (p.overrideFramerateDivision) { framerateDivision = p.framerateDivision; } if (p.overrideDivideTranslation) { divideTranslation = p.divideTranslation; } if (p.overrideDividerotation) { divideRotation = p.divideRotation; } }