On how to make an inventory system for my game. At a point he made a script non-MonoBehaviour, which made it impossible for me to set its execution order…
And No, if i put it in MonoBehaviour it will destroy it for some reason…
Any ideas?
The only non-MonoBehaviour that I noticed in that video was the Item class, which is a System.Object. You don’t set its execution order, because Unity doesn’t run it for you the way it does a MonoBehaviour. Its methods will run whenever you call them from another class. His Item class is meant to simply hold data, i.e the items held in inventory. You can think of it as being similar to an int or string. It’s just data and doesn’t run by itself.