I had a used json format to store data previously but it doesn’t seems secured one as the data is stored in simpler form and easily editable by the player so i found this binarry formator on youtube which seems prity secured one but i was unable to fine how to store a list of data using that format. basicaly this is the class which i am using for couple of times with different character to store ther time, feed and sleep status. so basicaly i was using this class as an list in another class to store the values in this.
using UnityEngine;
[System.Serializable]
public class PetDataHolder
{
public string closeTime = "00:00:00";
public string timeLeft = "00:00:00";
public int xp;
public string feedTimerStore = "00:00:00";
public string sleepTimerStore = "00:00:00";
public string lockTimerStore = "00:00:00";
[HideInInspector] public int Hr, Min,sec;
[HideInInspector] public float Sec;
[HideInInspector] public int feedHr, feedMin;
[HideInInspector] public float feedSec;
[HideInInspector] public int sleepHr, sleepMin;
[HideInInspector] public float sleepSec;
[HideInInspector] public int lockhr, lockMin;
[HideInInspector] public float locksec;
public int totalFeedToday;
public int totalSleepToday;
public int totalLockDownToday;
public int days;
[HideInInspector]public bool startFeed;
[HideInInspector]public bool startSleep;
[HideInInspector]public bool startLockDown;
[HideInInspector]public bool petExhousted;
}