Use DontDestroyOnLoad in the script for the object that contains the variables you want to retain from one scene to another. Also see here about creating singletons.
↧
Use DontDestroyOnLoad in the script for the object that contains the variables you want to retain from one scene to another. Also see here about creating singletons.