Remembering Variables between level files

Hi guys,

hopefully simple query for ya. Whats the simplest way of remembering variables between level files in unity, do we need to output to a text file? or is there a simpler way? Does anyone have an example?

Any Help much appreciated!

Cheers,

Will

You could mark the game object that contains the variables not to be destroyed when loading the next level, see DontDestroyOnLoad

Great stuff,

thanks!