Пример #1
0
    // 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);
    }
Пример #2
0
 // Note: Should be able to be both Serializable, and instantiable.
 public StatModifier(StatModifier.Type type, float value)
 {
     this.type  = type;
     this.value = value;
 }