public static void SaveXidData(XIDScan scan) { BinaryFormatter formatter = new BinaryFormatter(); string path = Application.persistentDataPath + "/XidData.xlenz"; FileStream stream = new FileStream(path, FileMode.Create); XidData data = new XidData(scan); formatter.Serialize(stream, data); stream.Close(); Debug.Log("Succesfully Saved Xid Data in the file"); }
public XidData(XIDScan scan) { }