| 12345678910111213141516171819202122232425262728293031 |
- 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<SaveVector3> orbPositions = new List<SaveVector3>();
- public List<SaveVector3> enemyPositions = new List<SaveVector3>();
- public List<int> enemyStates = new List<int>();
- public float masterVolume;
- }
|