aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/AIController.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-13 01:07:23 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-13 01:07:23 -0400
commitfb098531f41a3314ac61f1e4c808625c679c4653 (patch)
tree8cb1e06196893292166b2908b6112d921852d9d6 /Assets/Scripts/Controllers/AIController.cs
parentf2ea922dfd57bdbd64a0091eab3b97f936281343 (diff)
parent853b013d3c0127fb2c04a7cfeab23c77d52fc51f (diff)
downloadgmtk-gamejam-fb098531f41a3314ac61f1e4c808625c679c4653.tar.gz
gmtk-gamejam-fb098531f41a3314ac61f1e4c808625c679c4653.tar.zst
gmtk-gamejam-fb098531f41a3314ac61f1e4c808625c679c4653.zip
Merge branch 'master' of git.cameronkatri.com:gmtk-gamejam
Diffstat (limited to 'Assets/Scripts/Controllers/AIController.cs')
-rw-r--r--Assets/Scripts/Controllers/AIController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Assets/Scripts/Controllers/AIController.cs b/Assets/Scripts/Controllers/AIController.cs
index cdfc9a8..a7de4fb 100644
--- a/Assets/Scripts/Controllers/AIController.cs
+++ b/Assets/Scripts/Controllers/AIController.cs
@@ -95,10 +95,10 @@ namespace Controllers
flipper.transform.localScale = new Vector3(1f, 1f, 1f);
else
flipper.transform.localScale = new Vector3(-1f, 1f, 1f);
+
+ game.enemy.Move(transform.position + new Vector3(0f, BoxCollider.size.y * 3/4, 0f) + (transform.right * (0.5f * (turn && currentTurn ? -1 : 1))));
turn = currentTurn;
- game.enemy.Move(transform.position + new Vector3(0f, BoxCollider.size.y * 3/4, 0f));
-
leftLeg.top.transform.localRotation = Quaternion.Euler(0, 0, maxLegAngle * Mathf.Sin(animationStep * legSpeed));
leftLeg.bottom.transform.localRotation = Quaternion.Euler(0, 0, maxLegAngle + maxLegAngle * Mathf.Sin(animationStep * legSpeed));
rightLeg.top.transform.localRotation = Quaternion.Euler(0, 0, maxLegAngle * Mathf.Sin(animationStep * -legSpeed));