I wanna change sprite from Shop menu to play menu. What’s wrong?
public Sprite first;
public Sprite blueSprite;
public Sprite greySprite;
private Ball bila;
void Start()
{
bila.GetComponent<SpriteRenderer> ().sprite = first;
}
public void confirm_blue()
{
bila.GetComponent<SpriteRenderer>().sprite=blueSprite;
Need more deets 
What is the problem you are having? Compilation issues, logic problems?
Explain what it needs to do and what it is actually doing.
The code snippet does not give much to go on.
Yes, more details will help. But off the bat, I see private Ball bila;
I’m guessing nothing is assigned to bila, which means you are probably getting some sort of null error.
I want to unlock skins from a shop scene and include them in the play scene.
I can’t access the player’s gameobject from different scene.
You can use/try:
PlayerPrefs (save the skin unlocked/to use)
a static variable(s) to access across scenes.
use : DontDestroyOnLoad to keep an object “alive” between scenes. (might be used with a singleton for access) : DontDestroyOnLoad must be in a script on an object at the root level (not a child, for example).
Try one of those 
I already tried, but didn’t work.
bila.GetComponent<SpriteRenderer> ().sprite = first;
I get an error here “Object reference not set to an instance an object”
Take a look at the list of 3 options that I provided…
I already tried, but doesn’t work
Ya, you didn’t try… your last response didn’t have anything to do with the 3 options I mentioned?
Which one did you try? Or did you try all 3?
I tried all of them few hours ago from posting.
Alright… Not sure what to say to that. Sorry.
Can you show what you tried for the 3 things I posted - the code your wrote ?
I asked only how can I use gameObjects from another scenes
I’m sorry… there is a misunderstanding here. I did offer options to attain the result you sought.
And I already explained to you why you are getting the error you are getting. bila has no reference. It’s a private variable that has nothing assigned to it, which means you can’t get it’s component. @methos5k explained how to transfer between scenes, which is what you are trying to do, but you can’t assign a sprite if there isn’t anything to assign it to.
Granted, you might need a more elaborate system if you are trying to do an iap type shop, but that’s a lot more detail and you’ll actually have to store data between play sessions and not just a single play through.
Yes, I skimmed over mentioning the unassigned part (which I saw you had answered before my first post) 
Good that it was brought up, again, though… 