using UnityEngine; using RR.Game2D.Core.Managers; public class CoinCollectible : Collectible { public override bool TryPickup(GameObject newOwner, Transform optionalAttachPoint = null) { base.TryPickup(newOwner, optionalAttachPoint); GameManager.Instance.AddCoin(); Destroy(gameObject); return true; } }