Advertisement
CassataGames

Untitled

May 16th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1.         FileStream levelFile =
  2.             new FileStream(levelFileName, FileMode.Create);
  3.  
  4.         //StreamWriter saveStream = new StreamWriter(levelFile);
  5.         BinaryWriter saveBinary = new BinaryWriter(levelFile);
  6.  
  7.         SetSaveInfo();
  8.         foreach (GameObject Individual in ObjectList)
  9.         {
  10.             InfoAccess = Individual.GetComponent<ObjectInfoScript>();
  11.             SaveInformation();
  12.         }
  13.  
  14.         saveBinary.Write(SavedInfo);
  15.         saveBinary.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement