No, you’d want that to be within the player or within some other class that overarched your game. You probably COULD do it in the pickup, but then all pickups would have to be talking to one another all the time, which would be unnecessarily heavy.
No, you’d want that to be within the player or within some other class that overarched your game. You probably COULD do it in the pickup, but then all pickups would have to be talking to one another all the time, which would be unnecessarily heavy.