public void setvalue(int lev, int total_s, int level_t, int level_m, int level_ta, int level_l, int level_ma, string level_b, string list_d) { savedValue = new savedClass(); savedValue.level = lev; savedValue.total_score = total_s; savedValue.level_TV = level_t; savedValue.level_manocan = level_m; savedValue.level_table = level_ta; savedValue.level_bep = level_b; savedValue.level_lo = level_l; savedValue.level_may = level_ma; savedValue.list_disk_open = list_d; }
public void loadFile() { #if UNITY_IPHONE iPhone.SetNoBackupFlag (filePath); #endif if(File.Exists(Application.persistentDataPath + "/savedGames.txt")) { BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Open(Application.persistentDataPath + "/savedGames.txt", FileMode.Open); savedValue = bf.Deserialize(file) as savedClass; file.Close(); } }
public void loadFile() { #if UNITY_IPHONE iPhone.SetNoBackupFlag(filePath); #endif if (File.Exists(Application.persistentDataPath + "/savedGames.txt")) { BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Open(Application.persistentDataPath + "/savedGames.txt", FileMode.Open); savedValue = bf.Deserialize(file) as savedClass; file.Close(); } }
public void setvalue(int lev, int total_s, int level_t, int level_m, int level_ta, int level_l, int level_ma,string level_b, string list_d) { savedValue = new savedClass (); savedValue.level = lev; savedValue.total_score = total_s; savedValue.level_TV = level_t; savedValue.level_manocan = level_m; savedValue.level_table = level_ta; savedValue.level_bep = level_b; savedValue.level_lo = level_l; savedValue.level_may = level_ma; savedValue.list_disk_open = list_d; }