From 21b894f8c6fabee844e9d4f970e422454658cc40 Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Sat, 12 Jun 2021 23:01:15 -0400 Subject: Finally fix shooting --- Assets/Scripts/Controllers/GameController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Assets/Scripts/Controllers/GameController.cs') diff --git a/Assets/Scripts/Controllers/GameController.cs b/Assets/Scripts/Controllers/GameController.cs index ce6ea7e..9fbe674 100644 --- a/Assets/Scripts/Controllers/GameController.cs +++ b/Assets/Scripts/Controllers/GameController.cs @@ -144,7 +144,7 @@ namespace Controllers controller.dribbleSound.Stop(); controller.state = shoot; controller.ball.Rigidbody.bodyType = RigidbodyType2D.Dynamic; - controller.ball.Shoot(hoop.transform.position, time); + controller.ball.Shoot(hoop, time); lastShotPosition = playerTransform.position; return true; } -- cgit v1.2.3-56-ge451