how do you change teh sprite of an object in Unity from script code example
Example: change sprite of gameobject unity
gameObjectName.GetComponent<SpriteRenderer>().sprite = spriteName;
gameObjectName.GetComponent<SpriteRenderer>().sprite = spriteName;