To view this content, you must be a member of Terresquall's Patreon at $5 or more
Already a qualifying Patreon member? Refresh to access this content.
This article is a part of the series:
Creating a Rogue-like Shoot 'Em Up (like Vampire Survivors) in Unity
To fix an issue where pickups are stuck in the scene after play mode is disabled, you should edit DropRateManager.OnDestroy by adding this at the top of the function:
if(!gameObject.scene.isLoaded)
return;
This will prevent it from spawning drops when the game is being unloaded.
Hi Jamie, thank you for the excellent suggestion. I will definitely be implementing this in the coming tutorials.