29 lines
750 B
C#
29 lines
750 B
C#
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();
|
|
}
|
|
}
|