private void Awake()
 {
     if (!(saveController.helpExists()))
     {
         HelpStatus hs = new HelpStatus();
         saveController.saveHelpStatus(hs);
         Application.LoadLevel("help");
     }
 }
Ejemplo n.º 2
0
    public static void saveHelpStatus(HelpStatus hs)
    {
        BinaryFormatter formatter = new BinaryFormatter();
        string          path      = Application.persistentDataPath + "/help.pong";
        FileStream      stream    = new FileStream(path, FileMode.Create);



        formatter.Serialize(stream, hs);
        stream.Close();
    }