- Home /
Question by
legoguy217 · Feb 09, 2012 at 12:32 AM ·
prefabplayerscenewithout
Move Player to new scene without it resetting.
What I'am saying is lets say for an example you buy a weapon in the game (but your default player prefab has no weapon) and you take your player to a new scene. But when you take it to a new scene, your weapon doesn't come with you. Is there a way to make a script or give me a clue to bring the weapon to the next scene?
Comment
Answer by Berenger · Feb 09, 2012 at 01:30 AM
There is three I see right know.
Use DontDestroyOnLoad on your player. For more info, check out the doc.
Use a static object to store all your infos, so the player can pick them after a load.
Save what you need either in playerprefs or in a file (xml and co)
There probably is other ways though.