Пример #1
0
    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();
    }
Пример #2
0
 private void Awake()
 {
     singleton = this;
 }
Пример #3
0
 public void LoadData(ref ColumnRotate rotate)
 {
     rotate.rotationSpeed       = rotationSpeed;
     rotate.speedBonusPurchased = speedBonusPurchased;
 }
Пример #4
0
 public ColumnRotateData(ColumnRotate rotate)
 {
     rotationSpeed       = rotate.rotationSpeed;
     speedBonusPurchased = rotate.speedBonusPurchased;
 }