// RewardsChuteCollector.cs using UnityEngine; using DG.Tweening; public class RewardsChuteCollector : MonoBehaviour { private void OnTriggerEnter(Collider other) { var cb = other.GetComponentInParent(); if (cb == null) return; // Score it if (ClawScoreManager.Instance != null) ClawScoreManager.Instance.EvaluateBubble(cb.type); // Tell spawner to react (new bubbles / trap logic) //if (ClawBubbleSpawner.Instance != null) // ClawBubbleSpawner.Instance.NotifyBubbleGrabbed(cb.type); cb.transform.DOScale(0.5f,0.5f); // Remove the collected bubble //Destroy(cb.gameObject); } }