Editor freezes after 'killing' an enemy but not every time
I receive 0 errors before the editor freezes. Previously I thought the issue was that I changed the enemies List during runtime (which gave errors) because of how I was planning on handling enemy respawns, however I nolonger remove the enemy from that list nor destroy the enemyObject nor make any changes to it after spawning all enemies and adding them to the list. SkeletonController script, HostileHealth script, DropReward script, and RewardPopup script (Hastebin hyperlinks) please let me know if there's another script you see referenced that may be relevant to finding the solution. Thank you for your time! I should also note that I'm using Unity 2020.3.3f1
Answer by Firestream1014 · Apr 05 at 10:59 PM
So far it seems the issue was within SkeletonController, the coroutines being while(enabled) whereas now they're while(hHealth.health > 0)
Your answer
Follow this Question
Related Questions
Unity freezes when I run this and I have no idea why, please help 0 Answers
Application.TickGlobalCallbacks causing crashing! 0 Answers
Function runs fine the first time but crashes if I run it twice? 1 Answer
Https freezes the game for one second 1 Answer
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x50 0 Answers