Wave enemies (#9)

* Add enemy wave management and path following components

* cleanup
This commit is contained in:
2025-08-31 02:08:35 +02:00
committed by GitHub
parent 36d1cac284
commit 604520cad5
15 changed files with 267 additions and 285 deletions

View File

@@ -86,4 +86,19 @@ public partial class ChaseLevelComponent : Node
EmitSignalChaseStopped();
_isChasing = false;
}
public void SetChasing(bool shouldChase)
{
if (shouldChase && !_isChasing)
{
_previousCameraFollowTarget = _phantomCamera.FollowTarget;
_phantomCamera.FollowTarget = _root;
EmitSignalChaseStarted();
_isChasing = true;
}
else if (!shouldChase && _isChasing)
{
StopChasing();
}
}
}