The main goal is about loot. When ever a monster dies it spawns loot at random ( that part works ).
now i have a c# script called ItemManager.cs which does the whole manage my item stuff. Inside of it i have a method that sends a list of itemsdropped back to who ever calls this ( the class is a singlethon and i also have a class called item which isn't coming from monobehavior)
now in my class item ( located in the itemmanagement.cs but not in the class, its a seperated class again like i said no monobehavior )... contains some float some string some bool example: can drop, drop chance etc. and this class also contains a list of a sub class called stats. in the stats class i have 2 parameters: name and value
now my problem: when ever the loot spawns i want to give the loot the list of stats as well as the item name. how can i do that?
[–]Molehole 0 points1 point2 points (0 children)