- Home /
How to check if object has been destroyed in game and not spawn it next time run the game
Hi,
I'd like to ask if there anyway that we can have the game remembered the game object (for more specific - game treasure crate, fallen building,...) that it has been destroyed and doesn't spawn it in the next session of the game.
Thanks so much!
Comment
Answer by Naphier · Jan 05, 2016 at 06:08 PM
Use playerprefs or save that information to a data file. When loading the new game check these for that info.
Thank you so much for the valuable advice! Have a nice day!
Your answer
Follow this Question
Related Questions
check if object is destroyed ? 3 Answers
make 2 object not collide? 2 Answers
Create a cube relative to camera & mouse position. 1 Answer
zombie network spawn! help" 0 Answers
grid checking for objects 1 Answer