public static void SaveShots3(SpecialShots shot3) { BinaryFormatter formatter = new BinaryFormatter(); string path = Application.persistentDataPath + "/shot3.save"; FileStream stream = new FileStream(path, FileMode.Create); ShotData3 datashot = new ShotData3(shot3); formatter.Serialize(stream, datashot); Debug.Log("Shots Saved"); stream.Close(); }
public ShotData3(SpecialShots shot3) { Shots3 = shot3.EquippedShots; }
public ShotData2(SpecialShots shot2) { Shots2 = shot2.EquippedShots; }
public ShotData1(SpecialShots shot1) { Shots1 = shot1.EquippedShots; }