using System.Collections.Generic; using UnityEngine; [System.Serializable] public class SaveVector3 { public float x, y, z; public SaveVector3(Vector3 position) { x = position.x; y = position.y; z = position.z; } public Vector3 ToVector3() => new Vector3(x, y, z); } [System.Serializable] public class GameData { public int mapSeed; public float remainingTimer; public int orbsCollected; public float[] playerPos; public float[] playerRot; // Use the wrapper instead of float[] public List orbPositions = new List(); public List enemyPositions = new List(); public List enemyStates = new List(); public float masterVolume; }