diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-12 18:07:32 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-12 18:07:32 -0400 |
commit | a524f24128a4653bbc06eede2379107f9255faf9 (patch) | |
tree | c70ae9ee117a3a4c556a87a513c4586df0099faa /Assets/Scripts/Controllers/GameController.cs | |
parent | 67c86ed960cc5feaedd06569ad62a340cc0d013f (diff) | |
download | gmtk-gamejam-a524f24128a4653bbc06eede2379107f9255faf9.tar.gz gmtk-gamejam-a524f24128a4653bbc06eede2379107f9255faf9.tar.zst gmtk-gamejam-a524f24128a4653bbc06eede2379107f9255faf9.zip |
Tweak AI
Diffstat (limited to 'Assets/Scripts/Controllers/GameController.cs')
-rw-r--r-- | Assets/Scripts/Controllers/GameController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Assets/Scripts/Controllers/GameController.cs b/Assets/Scripts/Controllers/GameController.cs index 1573405..8dd6fc4 100644 --- a/Assets/Scripts/Controllers/GameController.cs +++ b/Assets/Scripts/Controllers/GameController.cs @@ -85,7 +85,7 @@ namespace Controllers if (controller.state == shoot || controller.state == dribble) return false; // Make sure its within their grab area. - if (Vector2.Distance(controller.ball.transform.position, handPosition) > 0.75f) return false; + if (Vector2.Distance(controller.ball.transform.position, handPosition) >= 1f) return false; controller.state = dribble; Move(handPosition); |