]> git.cameronkatri.com Git - gmtk-gamejam.git/blobdiff - Assets/Scripts/Controllers/GameController.cs
Finally fix shooting
[gmtk-gamejam.git] / Assets / Scripts / Controllers / GameController.cs
index ce6ea7ea2a2becf7a9404e4adef7b964e2b2fa66..9fbe6742b9a8d1f950f4a890d4e57e4fed0c22cd 100644 (file)
@@ -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;
       }