namespace Controllers
{
+ [RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(AudioSource))]
public class Hoop : MonoBehaviour
{
[SerializeField] private BoxCollider2D Rim;
[SerializeField] private BoxCollider2D Net;
[SerializeField] private AudioSource shotSound;
+ [SerializeField] private AudioSource crowdSound;
private Animator HoopAnimator;
controller.player.Score(Rim.transform.position);
else if (this == controller.EnemyHoop)
controller.enemy.Score(Rim.transform.position);
+ crowdSound.Play();
}
}
}