Thank you very much. So what should I be doing in this case ? Is there a function I can use instead of Destroy() or do I have to change the whole thing ? Or should I somehow stop garbage collection from collecting the reference ?
Also I stored inventory in GameInstance because in many places it is mentioned that only properties and values stored in GameInstance are transferred between levels.