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; } }
public override void Deact() { aggregate.AffectVitality(-vitality); added = false; //Debug.Log(string.Format("deact aggregate vitality: {0}; adder vitality: {1}", aggregate.vitality, vitality)); }