Ejemplo n.º 1
0
 protected override void React(Reactor reactant)
 {
     if (reactant.GetType() == typeof(DamageResist) && !added)
     {
         aggregate = reactant;
         aggregate.AffectVitality(vitality);
         //Debug.Log(string.Format("ADDER react aggregate vitality: {0}; adder vitality: {1}", aggregate.vitality, vitality));
         added = true;
     }
 }
Ejemplo n.º 2
0
 public override void Deact()
 {
     aggregate.AffectVitality(-vitality);
     added = false;
     //Debug.Log(string.Format("deact aggregate vitality: {0}; adder vitality: {1}", aggregate.vitality, vitality));
 }