Hello, i want to make save to file because PlayerPrefs gonna be not so optimal with that data size. I wrote this script:
But i have errors:
save:
IOException: Sharing violation on path C:\Users\Jason\AppData\LocalLow\TC\SurvivalGame\playerInfo.dat
NullReferenceException: Object reference not set to an instance of an object
load:
SerializationException: serializationStream supports seeking, but its length is 0
Please help!