Revert "Merge pull request 'find-the-sweet-spot' (#13) from find-the-sweet-spot into main"

This reverts commit 5b8e4eaeac, reversing
changes made to 03c0b158a4.
This commit is contained in:
2026-05-17 20:22:01 +02:00
parent 5b8e4eaeac
commit dfec8df767
57 changed files with 13 additions and 1591 deletions

View File

@@ -1,33 +0,0 @@
using UnityEngine;
public class HoleGoalTrigger : MonoBehaviour
{
[Tooltip("Optional: assign the ball rigidbody or leave empty to accept any Rigidbody with tag Ball.")]
public Rigidbody ballRigidbody;
[Tooltip("If true, checks tag 'Ball' when ballRigidbody not assigned.")]
public bool requireBallTag = true;
public System.Action OnBallScored;
private void OnTriggerEnter(Collider other)
{
if (ballRigidbody != null)
{
if (other.attachedRigidbody == ballRigidbody)
{
OnBallScored?.Invoke();
}
return;
}
if (other.attachedRigidbody == null) return;
if (requireBallTag)
{
if (!other.CompareTag("Ball")) return;
}
OnBallScored?.Invoke();
}
}