public static bool Load(Game_Data data) { if (File.Exists(Application.persistentDataPath + "/data.sav")) { BinaryFormatter bf = new BinaryFormatter(); FileStream stream = new FileStream(Application.persistentDataPath + "/data.sav", FileMode.Open); DataSave dt = bf.Deserialize(stream) as DataSave; dt.LoadVar(data); stream.Close(); return(true); } return(false); }