using System.Collections; using UnityEngine; namespace Game { public class Modification : Collectable { public ModificationProperties Properties { get; set; } protected override void Setup() { gameObject.AddComponent().sprite = Properties.image; } protected override void OnCollect(Player collector) { collector.StartCoroutine(collector.ProcessModification(Properties)); } protected override float Duration() { return Properties.pickupDuration; } } }