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