// Helper for simply applying change public StatModifier ApplyDeltaModifier(float delta, StatModifier.Type type = StatModifier.Type.FLAT) { StatModifier modifier = new StatModifier(type, delta); this.ApplyModifier(modifier); this.GetValue(); return(modifier); }
// Note: Should be able to be both Serializable, and instantiable. public StatModifier(StatModifier.Type type, float value) { this.type = type; this.value = value; }