Exemplo n.º 1
0
 public void Tick(EffectController target)
 {
     if ((Time.time - lastTick) >= TickFrequency)
     {
         if (targetHealth != null)
         {
             targetHealth.TakeDamage(damage);
         }
         lastTick = Time.time;
     }
 }
Exemplo n.º 2
0
 public void EffectApplied(EffectController target)
 {
     timeStarted  = GameTime.time;
     targetHealth = target.GetComponent <UnitHealth>();
 }