diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-06-12 21:25:59 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-06-12 21:25:59 -0400 |
commit | 08c4ba7f5aa07db27341cbd056d6482376191d2a (patch) | |
tree | 583dd59123fac79cf00b4b9d3d334790438d48d4 /Assets/Scripts/Controllers/AIController.cs | |
parent | 1e6b5794b3e0be28192529256d6d3f562f32f4ad (diff) | |
download | gmtk-gamejam-08c4ba7f5aa07db27341cbd056d6482376191d2a.tar.gz gmtk-gamejam-08c4ba7f5aa07db27341cbd056d6482376191d2a.tar.zst gmtk-gamejam-08c4ba7f5aa07db27341cbd056d6482376191d2a.zip |
Add non working time shooting
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); } } |