コード例 #1
0
    public static void saveLogo(LogoSystem logoSystem)
    {
        BinaryFormatter formatter = new BinaryFormatter();
        string          path      = Application.persistentDataPath + "/logo.save";
        FileStream      stream    = new FileStream(path, FileMode.Create);

        SaveLogo data = new SaveLogo(logoSystem);

        formatter.Serialize(stream, data);
        stream.Close();
    }
コード例 #2
0
 public SaveLogo(LogoSystem logoSystem)
 {
     logo1 = logoSystem.logo1;
     logo2 = logoSystem.logo2;
 }