system
1
How can I collect the time taken information from my previous scene to display on another scene?
I have this variable in my script on the player in scene1.
private var roundTimeRemaining : int = 0;
I want to collect this information from that scene so that i can display it on my final scene.
The best thing to do is place this into a singleton GameObject that has
function Awake()
{
DontDestroyOnLoad(gameObject);
}
in it. This way, you can record whatever values that you want and then access them in any scene.
http://unity3d.com/support/documentation/ScriptReference/Object.DontDestroyOnLoad.html