using UnityEngine; public class YummyMagnet : YummyBase { protected override void ObtainedCallback(Player player) { player.magnetCount += 1; } }