Beispiel #1
0
 public DeepAttributeModifier(DeepAttributeModifier other)
 {
     this.baseAdd    = other.baseAdd;
     this.postAdd    = other.postAdd;
     this.multiplier = other.multiplier;
     this.source     = other.source;
 }
Beispiel #2
0
 public bool RemoveModifer(DeepAttributeModifier modifier)
 {
     if (modifiers.Contains(modifier))
     {
         modifiers.Remove(modifier);
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 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());
 }
Beispiel #5
0
 public override void IntitializeBehavior()
 {
     speedMod = new DeepAttributeModifier(0f, modValue, 0f);
     parent.attributes[D_Attribute.MoveSpeed].AddModifier(speedMod);
     parent.StartCoroutine(Decay());
 }