Check into tutorials about loading / saving game state. This is very well-travelled territory.
The essential parts of the problem are:
-
define what you want to save (you have done so above)
-
translate that into appropriate C# variables (basic software data design)
-
gather the data into something that can be serialized (see tutorials)
-
serialize and deserialize the data (see tutorials)
Some more Load/Save notes:
2 Likes