mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 01:55:54 +00:00
Simplified actor modules
This commit is contained in:
parent
28671c098b
commit
a7f4f4eb28
8 changed files with 57 additions and 34 deletions
|
|
@ -64,6 +64,11 @@ public partial class EnemyNavigationMovement : MovementHandler
|
|||
}
|
||||
}
|
||||
|
||||
public override void Update(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void AlarmManagerOnAlarmEnabled(Vector2 location)
|
||||
{
|
||||
if (NavigationEnabled && location.DistanceTo(this.GlobalPosition) <= AlarmReactRange)
|
||||
|
|
@ -74,7 +79,7 @@ public partial class EnemyNavigationMovement : MovementHandler
|
|||
}
|
||||
}
|
||||
|
||||
public override void Move(double delta)
|
||||
public override void PhysicsUpdate(double delta)
|
||||
{
|
||||
if (_actorAi.Ai is not AiState.Enabled)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue