public void ChangeColor(Color color) { var darkColor = StaticUtilities.ChangeColorBrightness(color, COLOR_CORRECTION_FACTOR); var minMaxGradient = new ParticleSystem.MinMaxGradient(darkColor, color); foreach (var mainModule in _mainModules) { var module = mainModule; module.startColor = minMaxGradient; } }