As always, you did a great job explaining this! What confused me at first was that when you drag a GameObject into the Inspector on a field, it seems to automatically recognize the script attached to it - and thus the class "Inventory". Seem like Magic ;-) PS: And additionally the Inspector automatically leaves the Underscore off and set the first letter to uppercase!
As always, you did a great job explaining this!
What confused me at first was that when you drag a GameObject into the Inspector on a field, it seems to automatically recognize the script attached to it - and thus the class "Inventory". Seem like Magic ;-)
PS: And additionally the Inspector automatically leaves the Underscore off and set the first letter to uppercase!