Tricks can now occupy baskets and block scoring

This commit is contained in:
hz
2026-02-01 15:13:20 -06:00
parent b09362917a
commit 2d38838efd
3 changed files with 274 additions and 5 deletions
+5 -5
View File
@@ -165,6 +165,11 @@ public class PlayerPickupController : MonoBehaviour
heldObject.transform.localPosition = Vector3.zero;
heldObject.transform.localRotation = Quaternion.identity;
if (trick != null)
{
trick.SetCarried(true);
}
// Disable physics so it doesn't fall or collide with the player
if (heldObject.TryGetComponent<Rigidbody2D>(out Rigidbody2D rb))
{
@@ -181,11 +186,6 @@ public class PlayerPickupController : MonoBehaviour
rb.angularVelocity = 0f;
}
if (trick != null)
{
trick.SetCarried(true);
}
if (playerController != null)
{
playerController.enabled = false;