Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hi, to answer your question, you should first get the main settings from ParticleSystem.main, store it somewhere else and then use it to set the desired values, e.g.:

ParticleSystem.MainModule settings = smokeParticles.main;
settings.startColor = desiredColor;

Unity - Scripting API: ParticleSystem.main (unity3d.com)