Hey there,
i want to know some solutions for this:
i’ve got like 5 items which will all have the same stats but different values like:
healthPoints, damagePoints, manaPoints etc.
How can i code this easily without doing this for every item:
if (gameObject.name == "Item1"){
hp = 100;
mp = 120;
damage = Random.Rage(1,10);
} else if (gameObject.name == "Item2"){
hp = 110;
...
}
how to solve this the best way with less code? I guess i am searching for a list or something like this.
Thank you!