Skip to content
Snippets Groups Projects
Verified Commit 27afe738 authored by Adrian Paschkowski's avatar Adrian Paschkowski :thinking:
Browse files

Resurrect dead Enemies on round loss

parent 1aca14bc
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,8 @@ public abstract class Enemy : Fighter
public override void OnRoundEnd(bool won)
{
// Only run this when a round was actually running; OnRoundEnd is also called in the initialization phase.
if (roundRunning && !alive)
// Destroy all dead Enemies after a successful round
if (won && !alive)
{
Destroy(gameObject);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment