aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/GameController.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-12 23:01:15 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-12 23:01:15 -0400
commit21b894f8c6fabee844e9d4f970e422454658cc40 (patch)
tree29e47ead47b69982a9a96bfbc275315ddfa5a13f /Assets/Scripts/Controllers/GameController.cs
parentf913672cb017632ef115d2fb7a0c4d531650faf0 (diff)
downloadgmtk-gamejam-21b894f8c6fabee844e9d4f970e422454658cc40.tar.gz
gmtk-gamejam-21b894f8c6fabee844e9d4f970e422454658cc40.tar.zst
gmtk-gamejam-21b894f8c6fabee844e9d4f970e422454658cc40.zip
Finally fix shooting
Diffstat (limited to 'Assets/Scripts/Controllers/GameController.cs')
-rw-r--r--Assets/Scripts/Controllers/GameController.cs2
1 files changed, 1 insertions, 1 deletions
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;
}