Tricks can now occupy baskets and block scoring
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user