How you can follow with Unity 5.x and Unity 2017

ParticleSystem

In Unity 5.5, the MainModule struct was introduced. It contains information like the startColor, startLifetime etc.

This is the replacement in Brick.cs:

void PuffSmoke() {
    ParticleSystem.MainModule main = smokePuff.GetComponent<ParticleSystem>().main;
    main.startColor = GetComponent<SpriteRenderer>().color;
}

Additional information:

1 Like