6 public class Hoop : MonoBehaviour
8 [SerializeField] private BoxCollider2D Rim;
9 [SerializeField] private BoxCollider2D Net;
11 private void OnTriggerEnter2D(Collider2D other)
13 if (other.GetComponent<Ball>() == null) return;
15 if (Rim.IsTouching(other) && Net.IsTouching(other))