Help with my save and load script

i am using save & load game from unitywiki here, but it’s limited and i want to save my game so that when i close it and open it again i can load what i had saved

and also i want to save it with name so i can load what i want by name… but how to do this ?

If you don’t want to delve into that then you can do something simple like:

using UnityEngine;
using System.Collections;
using System.IO;

public class TempSave : MonoBehaviour {

 void Save () {
	     using (var writer = new BinaryWriter(File.OpenWrite("Save1"))) {
		    writer.Write (StuffToSave);
           writer.Write (OtherStuff);
		    writer.Close ();

 void Load () {
	  using(var reader = new BinaryReader(File.OpenRead ("Save1"))){
	       LoadyThing =  reader.ReadString ();
           OtherLoadyThing = reader.ReadString ();
	       reader.Close ();


This is a very basic way of doing things and I don’t know if it’s recommended, but it does work.