public DeepAttributeModifier(DeepAttributeModifier other) { this.baseAdd = other.baseAdd; this.postAdd = other.postAdd; this.multiplier = other.multiplier; this.source = other.source; }
public bool RemoveModifer(DeepAttributeModifier modifier) { if (modifiers.Contains(modifier)) { modifiers.Remove(modifier); return(true); } return(false); }
public DeepAttributeModifier AddModifier(DeepAttributeModifier modifier) { if (modifiers == null) { modifiers = new List <DeepAttributeModifier>(); } modifiers.Add(modifier); return(modifier); }
public override void IntitializeBehavior() { attMod = new DeepAttributeModifier(modBase.x, modBase.y, modBase.z); parent.attributes[attribute].AddModifier(attMod); parent.StartCoroutine(Decay()); }
public override void IntitializeBehavior() { speedMod = new DeepAttributeModifier(0f, modValue, 0f); parent.attributes[D_Attribute.MoveSpeed].AddModifier(speedMod); parent.StartCoroutine(Decay()); }