mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Enemy AI
This commit is contained in:
parent
242222a4d7
commit
f2bdec7ad7
14 changed files with 200 additions and 21 deletions
|
|
@ -42,7 +42,7 @@ public partial class PlayerDetectionModule : Area2D
|
|||
return false;
|
||||
}
|
||||
|
||||
return this.GlobalPosition.DistanceTo(GameManager.Instance.PlayerPosition.Value) < range;
|
||||
return this.GlobalPosition.DistanceTo(GameManager.Instance.PlayerPosition.Value) <= range;
|
||||
}
|
||||
|
||||
public bool IsPlayerInSight()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue