示例#1
0
    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;
    }
示例#2
0
    void Start()
    {
        this.getGeographicalCoordinates ();
        //this.getGeographicalCoordinatesCoroutine ();
        if (!VCInstancié)
        {

            victoriousCountry vic = new victoriousCountry();
                VCInstancié=true;
        }
    }