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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user