I am doing a CHAOS check in. showing support for one another. I need SIX jacks to post, not share, this message to show you are always there to kill chaos if someone needs it. let's go gentlemen...

This commit is contained in:
2023-09-04 16:11:05 -07:00
parent 4d0b0196e6
commit b315a90720
8 changed files with 71 additions and 29 deletions

View File

@@ -11,10 +11,8 @@ public partial class BasicEnemy : Node3D
public void OnEnemyHit(Node3D node)
{
var currentLevel = (Level)GetTree().GetFirstNodeInGroup("Level");
currentLevel.OnEnemyDefeated((Node3D)GetParent());
QueueFree();
if (_gameManager.CheckAllEnemiesDefeated())
{
_gameManager.OnAllEnemiesDefeated();
}
}
}