You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
500 B

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