I'm facing a problem where when I declare array of random colors. It shows random colors in a particle system on game start, but every time the game starts it shows white. I don't know why it happens, I didn't set white in my array.
public class A : MonoBehaviour
{
Color[] colors = {
new Color (170, 7, 107),
new Color (58, 96, 115),
new Color(81, 99, 149),
new Color(71, 118, 231)
};
void start()
{
GetComponent<ParticleSystem>().startColor = colors[Random.Range(0, colors.Length)];
}