somehow I can't deal with the simple scenario for the whole day :/
slotTypes = new InventoryItem[] { _Player.EqiupAmulet, _Player.EqiupArmor, _Player.EqiupBelt, _Player.EqiupBoots, _Player.EqiupCloak, _Player.EqiupArmor, _Player.EqiupGauntlets, _Player.EqiupHelmet };
Here want to store references to the InventoryItem public class; So, like, everytime I do something like:
InventoryItem _inv = new InventoryItem();
_Player.EqiuipArmor = _inv;
The slotTypes[1] and slotTypes[5] should hold reference to the _inv item now, but they do not, they stays null; I feel that I am missing something logical here, but hours of googling did not help me.
I've managed to pass the reference in functions using 'ref', but that did not solve the original problem.
_Player.EqiupArmor is defined as
public InventoryItem EqiupArmor
inside Player class;