using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class GameSaveData { public int saveSlot; public PlayerData playerData; public GameOptionsData gameOptionsData; public GameProgressData gameProgressData; public CollectablesData collectablesData; public InventoryData inventoryData; public string saveTimestamp; // Add a timestamp field public SceneSaveData sceneSaveData; //public string sceneToLoad; // Add a field to store the scene name public GameSaveData() { playerData = new PlayerData(); gameOptionsData = new GameOptionsData(); } public void ClearPlayerData() { playerData = new PlayerData(); } }