Question by
Inf1n1teZero · Feb 07 at 10:17 PM ·
c#scripting problemsaving
Saving monster class List problem.
I have a list of all monsters that are in my game.
public List<Monster> allMonsters;
and then I have list of inventory monsters that gets added to from the all monsters list.
public List<Monster> monsterInventory;
how would I go about saving all of my inventory monsters. This is the info I would have to save.
[System.Serializable]
public class Monster
{
public string name;
public Sprite monsterSprite;
public int level;
public int levelCap;
public int currentHP;
public int maxHP
public int xp;
public int maxXp;
public int evoNumber;
public List<Evos> evolutions;
}
I have been trying to figure this out for so long so any help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
Variables changes even on pause 0 Answers
problem with asset 2 Answers
I seriously cannot learn how to script. What do I do? 4 Answers
Why when i color 4 walls of a grid 10x10 it's coloring 10,9,9,8 and not 10,10,10,10 ? 0 Answers
How could i save a variable called by multiple objects using the same script? 1 Answer