I currently have some pickups that destroy once collected. Is destroying them better in terms of performance or is it just as fine to deactivate them? The latter seems easier when I want them to reactivate. Otherwise, if destroying and reinstantiating them is better, I’m not sure how to do this properly, despite having achieved it for the player. Though that was through watching a tutorial.
I currently have a coroutine in my health manager for when the player dies, but considering I already have a gold pickup script, I could do with having my instantiate function in there for the coroutine to reference. I can’t seem to get it to work though. I’ve tried setting up a start position variable and a respawn variable (one Vector 3, the other Quaternion) and a game object called goldBar, but every combination I’ve tried doesn’t do anything.
I want it so when the player fails to activate a checkpoint and dies, the gold resets.