m_Script: {fileID: 11500000, guid: 40e5d6a883d14c7fb60913ec2fc3009c, type: 3}
m_Name:
m_EditorClassIdentifier:
- Rim: {fileID: 2639737386686648195}
- Net: {fileID: 1029364543094105199}
+ Rim: {fileID: 1029364543094105199}
+ Net: {fileID: 2639737386686648195}
shotSound: {fileID: 5401724803266703353}
crowdSound: {fileID: 9185251669550473948}
--- !u!82 &5401724803266703353
{
if (other.GetComponent<Ball>() == null) return;
- if (Rim.IsTouching(other) && Net.IsTouching(other))
+ // We don't want people shooting up the hoop so check the velocity of the ball to make sure it is going down.
+ if (Rim.IsTouching(other) && Net.IsTouching(other) && (other.GetComponent<Rigidbody2D>().velocity.y < 0))
{
HoopAnimator.Rebind();
shotSound.Play();