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