So i have a group of planets and i want to be able to save the game and when i load the game i want to load the planets at their previous locations..
My problem is that when i say to save the object location to playerprefs from the script it is loading each object into the same location because its the same script and saving to the same variable in playerprefs the only way to get around it that i can think of is to create a separate script for each planets relocation which sounds ridiculous and there must be a better way.. so... what is it?
I thought about giving each object an ID or something but if i can't generate playerpref vars in script it won't matter.
↧