particle system change the start color unity code example
Example: unity particle system color
Color myColor;
gameObject.GetComponent<ParticleSystem>().startColor = myColor;
Color myColor;
gameObject.GetComponent<ParticleSystem>().startColor = myColor;