Hi folks
I hope someone from the community will give me their 2 cents. I have been looking at a lot of answers from the community as well as resources here and there.
I want to build a simple racing game. I have already built some racing mechanics and menus etc… My mental block is where vehicle selection / purchase comes in. I want to keep it as dynamic as possible, but basically I want a dealership type scene, where I can have a few vehicles, the player can purchase etc, have the vehicle in the garage scene and take it racing / driving etc.
My predicament is - What would be the best way to work with these vehicle prefabs? Is it beneficial to instantiate all of them in a class that persists throughout the game, or using the Resources.Load (which according to most forums is not the best practice) or Instantiating them as required? I am hesitant going the Instantiate route because in the situation of a car dealership where I will spawn a random set of vehicles from all vehicles based on price etc, the prefabs are not known (unless I define all these rules in my preload scene). I don’t know how efficient it would be to add an array of all vehicles in every scene and nitpick from there, or if there is a more dynamic and efficient way to do this.
I am basically hoping someone might be able to point me in the right direction on how to handle dealership cars and handling player owned vehicles when purchased. I am fairly proficient in C#… I think I am just in a bit of mental block at the moment.
Thanks everyone