예제 #1
0
    public static void LoadExternal(string saveName = "SaveData")
    {
        string fileName = $"{saveName}.bin";

        FileStream stream    = File.OpenRead(Application.persistentDataPath + "/" + fileName);
        var        formatter = new BinaryFormatter();

        instance.m_Store = (Dictionary <string, Data>)formatter.Deserialize(stream);
        stream.Close();
        instance.DoSheduled();
        instance.LoadAllDataInternal();
        instance.DoSheduled();
    }