Change clone sprite when collides with player C#

Hello, im creating an endless runner game and my ground is made up by clones. How can i change the clone sprite when the player collides with it?

You can change sprite using spriterenderer…

public Sprite newSprite;

void OnCollisionEnter(Collision col)

		col.gameObject.GetComponent<SpriteRenderer> ().sprite = newSprite;