how can i change sprite frame via code code example
Example: change sprite of gameobject unity
gameObjectName.GetComponent<SpriteRenderer>().sprite = spriteName;
gameObjectName.GetComponent<SpriteRenderer>().sprite = spriteName;