diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-12 21:26:35 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-12 21:26:35 -0400 |
commit | 55c85ac8246c6f811bf1dac0de48da423f064c87 (patch) | |
tree | aedb7f5fd8d7353c9a3e152b10a62d7228c48440 /Assets/Scripts/Controllers/AIController.cs | |
parent | 7a86f34935f52bd86488f878d98877cd645e9900 (diff) | |
parent | fc19cb9c30967431f959a1c9360f5ef847bcd31c (diff) | |
download | gmtk-gamejam-55c85ac8246c6f811bf1dac0de48da423f064c87.tar.gz gmtk-gamejam-55c85ac8246c6f811bf1dac0de48da423f064c87.tar.zst gmtk-gamejam-55c85ac8246c6f811bf1dac0de48da423f064c87.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.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Assets/Scripts/Controllers/AIController.cs b/Assets/Scripts/Controllers/AIController.cs index 4879c4c..bd5fee1 100644 --- a/Assets/Scripts/Controllers/AIController.cs +++ b/Assets/Scripts/Controllers/AIController.cs @@ -55,7 +55,7 @@ namespace Controllers var playerHoopDistance = Mathf.Abs(player.root.transform.position.x - game.EnemyHoop.transform.position.x); if (hoopDistance < 6f && hoopDistance > 2.5f && (Random.Range(0, 100) > 30 || playerHoopDistance > hoopDistance)) // Take the shot when in range. 70% chance he decides to if the player is standing between him and the basket. { - game.enemy.Shoot(transform); + game.enemy.Shoot(transform, 0f); } } |