Problem instanciating script

Hi,

I need some way to store a value from a Game Objet so i can use it in the other scene. The problems is that when i load the new scene the variable takes a new value and i loss the value from the Objct that belong to the previously scene.

Thanks.

Look up Object.DontDestroyOnLoad

http://docs.unity3d.com/Documentation/ScriptReference/Object.DontDestroyOnLoad.html

I usually make an empty object in the scene and call it GameManager. Make a game manager script that has some static variables and in the script in the start function have the don’t destroy on load

Thanks i alrredy solved the problem!!! a did the static variable thing and its worked prefectly