aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/AIController.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-13 09:15:00 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-13 09:15:00 -0400
commite484685210b4db2ee2ab21e0a71d0fe9043ae81d (patch)
tree3600db992d98dfbc516fd7a5f8783bc871f04438 /Assets/Scripts/Controllers/AIController.cs
parentc65c617e2031aa6ece4fa6831891fcf1e13662d4 (diff)
downloadgmtk-gamejam-e484685210b4db2ee2ab21e0a71d0fe9043ae81d.tar.gz
gmtk-gamejam-e484685210b4db2ee2ab21e0a71d0fe9043ae81d.tar.zst
gmtk-gamejam-e484685210b4db2ee2ab21e0a71d0fe9043ae81d.zip
Add shot indicator
Diffstat (limited to 'Assets/Scripts/Controllers/AIController.cs')
-rw-r--r--Assets/Scripts/Controllers/AIController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assets/Scripts/Controllers/AIController.cs b/Assets/Scripts/Controllers/AIController.cs
index 7246023..5a3761c 100644
--- a/Assets/Scripts/Controllers/AIController.cs
+++ b/Assets/Scripts/Controllers/AIController.cs
@@ -71,7 +71,7 @@ namespace Controllers
private static readonly int Running = Animator.StringToHash("Running");
private void FixedUpdate()
{
- Animator.SetBool(Running, (lastPosition - transform.position).x > 0.025);
+ Animator.SetBool(Running, (lastPosition - transform.position).x > 0.015);
lastPosition = transform.position;
}