Files
HauntedBloodlines/Assets/Scripts/SaveLoad/PlayerData.cs
2025-05-29 22:31:40 +03:00

27 lines
966 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class PlayerData
{
//public int saveSlot;
public float playerHealth;
public Vector3 playerPosition;
public Quaternion playerRotation;
public string activeCameraName; // Store the active camera's name or identifier
public List<string> saveTriggersThatNeedToBeDeactivated = new List<string>(); // Initialize the list here
//List of collected secret items
public List<string> collectedSecretItems = new List<string>(); // Initialize the list here;
// Count of collected secret items
public int collectedSecretItemCount;
public bool playIntroCutscene;
public bool continueButtonEnabled;
public bool playerControllerShouldBeEnabledOnGameLoad;
public bool playerCameraControllerShouldBeEnabledOnGameLoad;
public bool playerSanityShouldBeEnabledOnGameLoad;
// Add any other data you want to save
}