From 08c4ba7f5aa07db27341cbd056d6482376191d2a Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sat, 12 Jun 2021 21:25:59 -0400 Subject: Add non working time shooting --- Assets/Scripts/Controllers/AIController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Assets/Scripts/Controllers/AIController.cs') 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); } } -- cgit v1.2.3-56-ge451