public static void SaveColumnRotate(ColumnRotate rotate) { BinaryFormatter formatter = new BinaryFormatter(); string path = Application.persistentDataPath + columnRotatePath; FileStream stream = new FileStream(path, FileMode.Create); ColumnRotateData data = new ColumnRotateData(rotate); formatter.Serialize(stream, data); stream.Close(); }
private void Awake() { singleton = this; }
public void LoadData(ref ColumnRotate rotate) { rotate.rotationSpeed = rotationSpeed; rotate.speedBonusPurchased = speedBonusPurchased; }
public ColumnRotateData(ColumnRotate rotate) { rotationSpeed = rotate.rotationSpeed; speedBonusPurchased = rotate.speedBonusPurchased; }