I have hit a roadblock and I think I am probably overthinking this. But I cant figure out how to get past it.
I want to save some very basic information about characters in my game. Upon booting the game up, you arrive at a character selection screen. You can also create a character. I am looking for the best way to allow players to save several different characters with different names and characteristics. I dont need to save scenes or progress in a level, or actual gameObjects or anything like that.
Basically I just have a custom class called PlayerDataClass that saves my Character’s name, XP, Level, etc. Just some basic characteristics.
My thought is I would give each player an array of playerDataClass’s - each segment of the array containing all the characteristics: level, xp, etc.
I have looked at playerPrefs, JSON, XML. I am just not sure of the right way to go. These all seem to do way more then I need. I just want to save some basic strings and ints but I need them to all be listed under one character, hence the custom class PlayerDataClass.
What would be the best way to go about this? Is having all the character data under one class a good idea?
I know this is more of a C# question than a unity question but this is the most helpful forum around! Thanks very much folks.