I have a scene called 'game'. And a gameobject. Every time the player selects the restart button, the game scene loads again. I don't want the gameobject to destroy when the game scene is loaded fresh. But when the player switches to the menu scene I want the gameobject to destroy. How can I do this? Thank you.
↧