how to save a load a game?

in my game i want it that when i collide with a "save sphere" my game automatically saves my game where it was. how would i come about doing this?

1 Answer

1

Take a look at using PlayerPrefs for small amounts of data. For something larger you may need to use either an XML file or a SQL database.

If you search Saving Players Position Unity or Saving Game Unity you will find lkots of results bot in Google and on this site.

The link I provided explains playerprefs, also you could search this site for myriad examples. XML is and Extensible Markup Language documnet. SQL (Structured Query Language) is a database format like MS-SQL, mySQL, Oracle, Postgress, etc