Skip to content

Commit

Permalink
fix: Merge pull request #38 from Wizards-vs-Robots/dev
Browse files Browse the repository at this point in the history
fix: robots not dying
  • Loading branch information
4kills authored Jun 14, 2022
2 parents f0956d5 + b6161f2 commit bbaf0ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Assets/Scripts/WaveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void ReportDeath(GameObject entity)

// Remove the entity and drop reward
GenerateDrop(entity.transform.position);
DestroyImmediate(entity);
Destroy(entity);
minions.Remove(entity);
}
}
Expand Down Expand Up @@ -191,7 +191,6 @@ public List<Tuple<float, Attacker>> GenerateSpawnPattern()
float quota = strength;
//Debug.Log("Quota: " + quota);

Debug.Log("a");
List<Tuple<float, Attacker>> output = new List<Tuple<float, Attacker>>();
while (quota > 0) {
Debug.Log("Quota: " + quota);
Expand Down
3 changes: 2 additions & 1 deletion Assets/Tests/Editmode/ReportDeathTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
using UnityEngine;
using UnityEngine.TestTools;

[Ignore("Problem with Destroy")]
public class ReportDeathTest
{
[Test]
[Test]
public void TestDeathAlreadyReported()
{
EditorSceneManager.OpenScene("Assets/Scenes/Game.unity");
Expand Down

0 comments on commit bbaf0ad

Please sign in to comment.