Method 1 PlayerPrefs
Basic way to keep data from scene to scene:
Easy to use, but not secure nor fast.
Method 2 DontDestroyOnLoad(gameObject);
The other way is to create a GameControl that will not be destroy during load new scene:
Further improve the script to ensure this is the only control exist(singletons)
Method 3 Serialization
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
Saving Info to file:
Load the file:
Learning material from Unity Learning – Persistence Data Saving