https://learn.unity.com/tutorial/world-interactions-collectibles?projectId=5c6166dbedbc2a0021b1bc7c# I'm studying on Collectibles, and some questions arised. In scripts, there is destroy function. I learned it destroys the parameter of the function. but the parameter is Ruby object, why there is 'the collectible health pack.' what relation between them?? I don't know well...
Destroy() is often used to completely remove a GameObject from the scene. I haven't actually completed the tut, by my guess is it is destroying the object after it gets "collected" - which really just means it is deleting it, and in some other part of the tutorial it probably adds the Ruby to a count or something as a score.