eny idea for buy car and spawn on scene

Hey im stuck with buying car in car lot and drop car in garage and go race with buyed car.

Could you give a little more detail? Like do you already have the car made and you just need a way to buy it and have it show up on screen? Just try and give as much detail as possible.

i have right now 8 cars all Works and simple garage and loading do race track.But dont have eny ideas how do get car buyable and drop in garage and later racetrack

The way I would go about doing it would be to have a master game object that does not destroy on load that keeps track of the following.

So the first thing you will want is an ID or Name that each car is referenced with.

Then store each car in a variable in the Master Game Object so that it always has them handy.
The Master Game Object can also store the amount of money the player has.
Make it track the car or cars that the player owns.
Make it track the car that is selected in the garage.
Then you have all that information ready when you are in the track levels.

Make an empty game object or store a variable in the MGO to reference where the car should spawn.

When the level loads the Master Game Object can spawn the car on its spawn point and then you can race away.

That’s how I would go about it anyway. You can also add a SaveGame and LoadGame function in the master game object using player prefs so that the money and cars are persistent through game restarts.

If you need code specifics let me know I might be able to help out a little.