- Home /
Question by
cavemancan5 · Oct 17, 2017 at 10:05 PM ·
game development
How to make a game destroy itself once destroyed
How would you make a game destroy itself once completed as in delete your copy and deny yourself from replaying/re-downloading. I honestly think it would make game players
Comment
Answer by Crispinator · Oct 17, 2017 at 10:25 PM
If you mean delete the Prefab altogether, you cannot do that from code. If you just want the player to not be able to access it, you could create an if() statement, and upon destruction of the object, save a true or false value to PlayerPrefs. Then, upon launch, if the value id false or 0, have code that says the player can't use it. Otherwise, if the value is true or 1, it can be used normally.
Thank you a lot. Have an amazing day, sorry I can't award you any points
Your answer
