private void saveProgress(string saveName) { SaveData sd = new SaveData(); Vector3[] modelRotation = new Vector3[models.Count]; bool[] modelActivated = new bool[models.Count]; for (int i = 0; i < models.Count; i++) { modelRotation[i] = models[i].Rotation; if (models[i] is Tree) { Tree m = (Tree)models[i]; modelActivated[i] = m.IsBurned; } if (models[i] is Meteoriet) { Meteoriet m = (Meteoriet)models[i]; modelActivated[i] = m.IsTouched; } } sd.InitiateSave(Game, player.Position, player.FlameSize, terrain.TerrainVertices, modelRotation, modelActivated, saveName); }