public static void Load() { if (File.Exists (Application.persistentDataPath + "/victoriousCountry.gd")) { listePaysSerialisable liste = new listePaysSerialisable(); BinaryFormatter bf = new BinaryFormatter (); FileStream file = File.Open (Application.persistentDataPath + "/victoriousCountry.gd", FileMode.Open); liste = (listePaysSerialisable)bf.Deserialize (file); liste.createDictionaire(); file.Close (); } else { votoriousCountryInst = new victoriousCountry(); } variablesGlobales.votoriousCountryInst = votoriousCountryInst; }
void Start() { this.getGeographicalCoordinates (); //this.getGeographicalCoordinatesCoroutine (); if (!VCInstancié) { victoriousCountry vic = new victoriousCountry(); VCInstancié=true; } }