Ejemplo n.º 1
0
 private void ApplyEffects(EffectorEvent effectorEvent)
 {
     foreach (EffectsEventPair pair in _effects)
     {
         if (pair.effectorEvent == effectorEvent)
         {
             foreach (Effect effect in pair.effects)
             {
                 effect.Apply(gameObject);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public TimedEffectorEvent(decimal executionTime, EffectorEvent effectorEvent)
 {
     ExecutionTime  = executionTime;
     _effectorEvent = effectorEvent;
     IsActive       = true;
 }