Closed thombruce closed 12 months ago
The error reads like:
Can't insert the Targeting component onto Enemy because Enemy doesn't exist
This doesn't happen all the time (I have successfully just played a game in which I destroyed all enemies) but is happening early into gameplay. Main difference: I initially let the enemies damage the player before playing, but I doubt this has any effect on the bug.
The error:
Could be related to work ongoing on #72 - I'm migrating systems into a central location and in doing so have made some plugin interfaces redundant and removed them. There are no material code changes, so I imagine this is a pre-existing problem that the new structure has brought to light. That is to say, it must be a systems order of execution issue which was previously hidden by plugin load order or something like that. Before #72 is done, the systems will be further refactored and placed into more appropriate schedules, system sets and state conditionals - hopefully this resolves this issue.